Jump to content

table alike style


ozkanb
 Share

Recommended Posts

Hi,I want to make a table like layout but without the table, table-row and table-cell properties.i do it like :for the left div:float:left;width:200px;and nothing for the right div.Left div and right div has only text in itbut there is a problem:When text in right div gets to new line, then it is not indented anymore, It goes under the left div.i want that the right div, how many lines it also has, to be indented always(200px)any suggestions?

Edited by Özkan
Link to comment
Share on other sites

Yes, it is working too. Thx, but also with 'display:block;'
A div's default display style is block, so unless you're changing its display in another rule, there's no need to explicitly define it as block.
Link to comment
Share on other sites

hmm right, but i was working with span's, sorry :)for span's you have to give a display property
right, if you need to display it so it takes on block properties. span's are inline, and thus behave differently by default.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...