Lonelydreamer Posted August 17, 2004 Share Posted August 17, 2004 ><div id=NAVIGATION1 style=" width:129; position:absolute;top:302px;left:135px;"> fajsdlfsfdsdfasdfasfddasfffffffffffffffff </div> Okay I have a navigation bar that is exactly 129 px but the width element refuses to work!! please advise. Quote Link to comment Share on other sites More sharing options...
purplespider Posted August 17, 2004 Share Posted August 17, 2004 This could be because of your content in the div "fajsdlfsfdsdfasdfasfddasfffffffffffffffff". As this is just theoretically 1 long word it will stretch the div, rather than splitting it onto 2 lines, if you break up that "word" with spaces it should obey the width you have told it to, automatically putting a new "word" onto the next line when required. There may be a way to make it split up your "long word" but I don't know how unfortunatly. However, unless you are going to have your site in welsh I doubt it will matter! Quote Link to comment Share on other sites More sharing options...
Lonelydreamer Posted August 17, 2004 Author Share Posted August 17, 2004 THANK YOU SOOOOOOOOOOOOO.................. much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I couldn't do any designs without that thanks alot!!!!!!! Quote Link to comment Share on other sites More sharing options...
borfast Posted August 17, 2004 Share Posted August 17, 2004 (edited) Also, I suggest you add quotes to the value of the id attribute, in order to make the code standards compliant Edited August 17, 2004 by TCH-Raul Quote Link to comment Share on other sites More sharing options...
purplespider Posted August 17, 2004 Share Posted August 17, 2004 lol, no problem! anytime! I only started learning CSS a couple of days ago, and I had that exact problem! Simple solution, but still took me a while to figure it out! James Quote Link to comment Share on other sites More sharing options...
kaseytraeger Posted August 17, 2004 Share Posted August 17, 2004 In addition, you will need to specify the width in pixels, as in ><div id="NAVIGATION1" style=" width:129px; position:absolute;top:302px;left:135px;"> instead of ><div id=NAVIGATION1 style=" width:129; position:absolute;top:302px;left:135px;"> without the designation of "px" for pixels, the browser has to make a guess as to whether you are referring to pixels, ems, etc. Quote Link to comment Share on other sites More sharing options...
borfast Posted August 17, 2004 Share Posted August 17, 2004 Humm... I had that in my post (about adding the px) but it's not there, now... Maybe I accidentally deleted it when I edited the post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.