i want to align 4 div elements horizontally without using a table.
<div 1></div> <div 2></div> <div 3></div> <div 4></div>
Out of 4 div, first div may have variable content from database and adjust its width. Besides that, other three div should adjust themself and fit in a single line.
How can i set the styles for the above scenario?
.last{
float:right;
clear:right;
margin-right:0
}
--------------------------------
Because your page is dynamic you can add an inline style in each div to set its width accordingly.
For example your PHP, ASP or JSP code could reformat your HTML markup as shown below:
Bookmarks