homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Div tag adjust its width to the longest word in it
Div tag width
Attila001122

5+ Year Member



 
Msg#: 3525588 posted 1:26 am on Dec 12, 2007 (gmt 0)

Hello,

I have posted this on the CSS forum too, but I am not sure if it is a Dreamweaver problem...

I am new to CSS, so please be patient.

Not a great problem, but annoying:
I am using Dreamweaver CS3 and CSS to build my site.
There is a div tag to contain simple text. Everything is default, only margin and padding setting are not 0
I use it in 2 occasion.
On the first, it is normal.
On the same page next time it behaves as it was made of elastic.
It adjusts its width to the longest word in it.

In Firefox and in IE6 the result looks completley normal, only Dreamweaver displays it like this.

Anyone knows about these problem?

Thanks

Attila

 

justgowithit

10+ Year Member



 
Msg#: 3525588 posted 2:07 pm on Dec 12, 2007 (gmt 0)

Hello Attila,

There are a number of reasons why the design view of DW will render much differently than a browser. Dynamic scripts, server-side includes, etc. will all cause pages to render differently.

Available screen width can also cause pages to collapse a bit in DW's design view. <div>s will not break a word to wrap - that's probably why you're seeing the <div> wrap to the longest word that it contains.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved