Jump to content

line break in div how


kfir91

Recommended Posts

u dont understand

i have this

<td>

test test test test

test test test test

test test

</td>

the td width is 100px

and he write all the "test" in one line... why?

and i break line automatic without <br> or div width height etc...

 

white-space didnt help

display: block; didnt help

Hi,

    Just insert a paragraph tag in your div like

<div style="width: 100px;">

<p>testtesttesttesttesttesttesttesttest</p><p>testtesttesttesttesttesttesttesttesttesttesttesttesttest</p>

</div>

and use display:block comment in CSS like this

p

{

  display:block;

}

You can also use h4 tag in place P tag

 

  • 4 weeks later...

I had this problem when I was coding my first website.

The solution was a code but I've forgotten it now and I cant access my backup files right now sorry just keep looking for codes/scripts.

Also if your using a database or mysql some ftp servers can limit the characters.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.