Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
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?
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.