can anyone help.. I have set my page with 4 boxes using the div command and sizing them using % (percentage) for width... WHY do end up with a border round each box (or is it a gap between)
Hi
I enclose my code... u will see the gap between top 2 boxes... if I size in pixels everything is ok :-
<html><head><title>RoseBud Ceramics</title>
<link rel="stylesheet" type="text/css" href="wanzdw.css">
<script language=JavaScript src=catlist.js type=text/javascript></script>
<script language=JavaScript src=stdinc.js type=text/javascript></script>
<script language=JavaScript type=text/javascript>
</script>
<!-- ********* create MAIN section of page **************************************** -->
<div class=main2 style='position:absolute; left:21%; top:100; width:78%; height:100%'>
<table class=menu4 width 700>
<tr><td><br><br>Here at Rosebud Ceramics we have a vast selection of unfinished pottery in all shapes and sizes just waiting to be transformed<br></td></tr>
<tr><td><br>Whether painting your own personal design or with the help of our friendly staff and our extensive
selection of templates, stencils,stamps and other tools which are available, anyone of any age and ability can create a perfect, one of a kind
gift for any occasion or their very own masterpiece to show off at home</td></tr>
Not sure why, but that seemed to make it better in IE. It looked just fine in Firefox though.
Also, specify units in your styles wherever you have values that are non-zero. For example, you have 'height: 100' in the top two divs and 'top: 100' in the other two. Make sure you specify pixels on these if that's what you intended.
You should also add a valid doctype to the top of your document and make sure it validates.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.