I'm trying to do the right thing and put the appropriate units for width in my css - b-u-u-t
I dont' understand the definitions:
What is the difference between replaced and non-replaced elements (inline)?HTML Code:http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width
And my real questions is...dadah!
What I want: 2 divs within another containing div (am I allowed to say that?) to each take up 50% width of the containing div.
following is the code, what would be the better way of specifying width, length, height etc. Should be compatible for both IE 6.0 and Firefox 1.03-4
div class=1 should have max width of 600px
div class=2 should have max widths of about 300px and be inline.
ok thanx.HTML Code:<html> <head> <title>sample_delete</title> <style type="text/css"> .1 { border:1px blue solid; width:600px; height:100px; background-image:url(/Images/chapter%20heading%20banner.gif); background-repeat:no-repeat; background-position:top left; } .2 { background-color: transparent; display: inline; border:1px red solid; padding-top: 75px; margin-bottom:0pt; height:100px; vertical-align:bottom;} #left { text-align:left;} #right {text-align:right; } </style> </head> <body> <div class="1"> <div class="2" id="left"><h3>This is div1</h3></div> <div class="2" id="right"><h3>some more text<h3></div> </div> </body> </html>
WISWAG![]()



Reply With Quote

Bookmarks