So I'm working on editing an HTML theme for my blog, and there is one thing that's stumping me. Part of the theme has a line of text that's supposed to be hanging off to the right of the post.
The text used to be 12px, and the margin-left was 510px.
I changed the the text to 14px. In order to get the same effect, I had to change the margin-left to 512px.
What I figured out was that the margin-left has to be 498px + however many px your text is set to (12px = 510px margin, 14px = 512px margin).
What I want to know is, is there any way to make it automatic? I have it set up that I can type in whatever size font I want it to be, and it'll change it to that size font (through a {text:Size} type in box).
Is it possible to make it look like this? margin-left: {text:Size}px+498px, or do I have to manually change the margin if I want to change my text?
Thank you!
The text used to be 12px, and the margin-left was 510px.
I changed the the text to 14px. In order to get the same effect, I had to change the margin-left to 512px.
What I figured out was that the margin-left has to be 498px + however many px your text is set to (12px = 510px margin, 14px = 512px margin).
What I want to know is, is there any way to make it automatic? I have it set up that I can type in whatever size font I want it to be, and it'll change it to that size font (through a {text:Size} type in box).
Is it possible to make it look like this? margin-left: {text:Size}px+498px, or do I have to manually change the margin if I want to change my text?
Thank you!