Welcome to WebmasterWorld Guest from 107.20.34.173

Forum Moderators: open

Message Too Old, No Replies

Div tag adjust its width to the longest word in it

Div tag width

     

Attila001122

1:26 am on Dec 12, 2007 (gmt 0)

5+ Year Member



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

2:07 pm on Dec 12, 2007 (gmt 0)

10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month