- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello
Is it possible to give the header tag an attribute that forces a width of e.g. 300px for both headers?
Example: if I on one page have a header that says:
"This is a very long header"
and another header that says
"short header"
Can I make both headers the same width?
Thank you
Simon
I’m going to go ahead and say it’s not possible, though saying that makes me feel a little wrong. There might be some crazy javascripting you can do, but I don’t know why you would want to do this in the first place.
Not letter but word spacing may help things in the right direction:
text-align justify only works with, I guess, anything longer than two-three words. In my above mentioned first example, it could work but I need it to work with e.g. two words.
Whether or not it is a good solution graphically or not, I think it would be nice if I could get it to work.
/Simon
theres no way to do this in css.. (text-align:justify only works if you have more than one line of text)
And it only works on the lines that wrap (never on the last line).