Forum Moderators: not2easy
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
Yes, I guess the HTML editors are not really accurate...
But the problem is that why behaves the same div tag differently in two cases...
I guess even that would be helpful if I could now the name of that behavior, ie adjusting the size to the longes word.
As I expect, if there is no other settings, the horizontal size of the div tag is the longest paragraph or the size of the container if it it in there.
I my case the second div tag writes almost every word in a new line. So it looks like every space acts as a line break <br />.
Any input is welcome,
Thanks
Attila
Yes, maybe I took granted that sometimes the div taking automatically the space what horizontally available...
So why there is no with?
On the left there is an image, and my "good" div is just right to it, with some text.
So there is a picture with an explanation...
(If I give to it 100% width, it "jumps" under the picture and fills the space...)
Under that there is the "bad" div with some other text which is spreading downwards instead of to the right.
That one has no picture front of it...
Thanks for your inputs, but I have to go now, and only see your answer tomorrow.
Attila