Hi
I am new to using <div> for web page layout, and seem to be having a problem with positioning some <div>'s in line (horizontally) within an existing <div>. I tried display; inline; however that seems to remove the width control and margin, which i need to maintain. currently the relevant code is:
.css
with HTML excerpt ofHTML Code:.tablerow{ position:relative; left:5px; top:10px; height: 30px; width:750px; border:1px solid black; background-color:white; } .house_name{ postition:absolute; margin:2px; width:45px; height:24px; text-align:center; font-family:Arial; border:1px solid black; } .house_number{ postition:absolute; left: 55px; top: 0px; margin:2px; width:45px; height:24px; text-align:center; border:1px solid black; }
If someone can point out to a newbie where he is going wrong i would appreciate it.HTML Code:<div class="tablerow"> <div class="house_name">Name</div> <div class="house_number">No.</div> </div>
Many thanks in advance




)




Bookmarks