Mike_Reynolds
07-23-2005, 03:17 PM
I would like my header to span the width of the window so that it grows and shrinks with window resizing. Is this possible?
|
Click to See Complete Forum and Search --> : Can Text Span Window Width Absolutely? Mike_Reynolds 07-23-2005, 03:17 PM I would like my header to span the width of the window so that it grows and shrinks with window resizing. Is this possible? ray326 07-23-2005, 05:00 PM What's in the header text? You could put each character in its own container and size them with percentages. E.g. if your header is HELLO, h1 span { display:block; float:left; width:19%; text-align:center; } <h1><span>H</span><span>E</span><span>L</span><span>L</span><span>O</span></h1> Whatakluge but satisfies your requirement. Mike_Reynolds 07-23-2005, 07:21 PM That doesn't change the font size; it just adds more space between the characters and eats the spaces between words, or causes the word wrapping to cut into the middle of words rather than only at spaces. If the percentage is high it does the former, if the percentage is low it does the later. It is quite clear to me that CSS has nowhere near enough power and versatility to do what I'm thinking of. I seriously doubt HTML does either. I posted this to the JavaScript forum as well, but I'm wondering if even that would have enough power to implement this simple idea. Perhaps what I should be asking is, what tool will allow me to do this? Would I have to write and ActiveX control? Is there something simpler I could do to accomplish this? NogDog 07-23-2005, 09:22 PM Make the heading text into an image file, assign ad ID to the <img> tag for it, and in the CSS styling set the width for that ID to 100% (or slightly less, whatever achieves the look you want). ray326 07-24-2005, 06:58 PM Perhaps what I should be asking is, what tool will allow me to do this? Would I have to write and ActiveX control? Is there something simpler I could do to accomplish this?Flash. Can't beat Flash for eye candy like this. Mike_Reynolds 07-25-2005, 01:28 AM Two excellent answers! Thank you both very much! drhowarddrfine 07-25-2005, 08:58 AM Why aren't you just using % for font size? ray326 07-25-2005, 11:20 PM Why aren't you just using % for font size?% of what? Mike_Reynolds 07-26-2005, 04:12 AM Two excellent ansers! THank you very much! The first answer works perfectly, the second has me off on a whole new adventure. Mike_Reynolds 07-26-2005, 04:17 AM Hmmm... I checked a second ago and none of the last three posts showed up. I thought my previous reply got snarfed up so I sent it again. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |