Jump to content

Css Width Element


Recommended Posts

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! :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...