Barton68
05-06-2007, 12:39 PM
Hi,
I'm used to using tables, but have recently seen how bad things can become in other browsers. I'm switching my site to DIVs now.
my Website (http://www.moretoninmarshtaxis.com/)
I have noticed that in some browsers text over-runs the container DIV. (BrowserShots.org)
8867
How can I stop this action?
Thanks,
Barton.
HTML:
<div class="content">
<div id="headerline"></div>
<div id="footertext">
<div>
<h3>Cotswold Taxi, Taxi Moreton in Marsh, Cotswold Airport Taxi,<br />
Private Hire Gloucestershire, Airport Transfers Gloucestershire,<br />
Anthonys Cotswold Taxis, Airport Taxi Heathrow,<br />
Airport Taxis Birmingham, and Cotswold Tours.</h3><br />
<div class="border-text">
~ Airport taxi East Midland ~ Airport transfer Birmingham ~ Airport transfer Gloucester ~
</div></div></div>
<div class="footerline"></div>
</div>
CSS:
.content {
background-image:url(images/content_bg.gif);
width:717px;
}
#headerline {
clear:both;
background-image:url(images/header_bg.gif);
font-size:1px;
height:10px;
}
#footertext {
height:30px;
margin-top:2px;
margin-left:auto;
margin-right:auto;
padding:10px 0;
font-size:8pt;
color:#999;
text-align:center;
}
#footertext a:link, #footertext a:visited, #footertext a:active
{
text-decoration: none; color:#999;
}
#footertext a:hover {
text-decoration: none; color:#ff9900;
}
.footertext {
clear: both;
background:#fff;
color:inherit;
height:1px;
}
h3 {
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: silver;
letter-spacing: 2px;
}
I'm used to using tables, but have recently seen how bad things can become in other browsers. I'm switching my site to DIVs now.
my Website (http://www.moretoninmarshtaxis.com/)
I have noticed that in some browsers text over-runs the container DIV. (BrowserShots.org)
8867
How can I stop this action?
Thanks,
Barton.
HTML:
<div class="content">
<div id="headerline"></div>
<div id="footertext">
<div>
<h3>Cotswold Taxi, Taxi Moreton in Marsh, Cotswold Airport Taxi,<br />
Private Hire Gloucestershire, Airport Transfers Gloucestershire,<br />
Anthonys Cotswold Taxis, Airport Taxi Heathrow,<br />
Airport Taxis Birmingham, and Cotswold Tours.</h3><br />
<div class="border-text">
~ Airport taxi East Midland ~ Airport transfer Birmingham ~ Airport transfer Gloucester ~
</div></div></div>
<div class="footerline"></div>
</div>
CSS:
.content {
background-image:url(images/content_bg.gif);
width:717px;
}
#headerline {
clear:both;
background-image:url(images/header_bg.gif);
font-size:1px;
height:10px;
}
#footertext {
height:30px;
margin-top:2px;
margin-left:auto;
margin-right:auto;
padding:10px 0;
font-size:8pt;
color:#999;
text-align:center;
}
#footertext a:link, #footertext a:visited, #footertext a:active
{
text-decoration: none; color:#999;
}
#footertext a:hover {
text-decoration: none; color:#ff9900;
}
.footertext {
clear: both;
background:#fff;
color:inherit;
height:1px;
}
h3 {
font-size: 10pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: silver;
letter-spacing: 2px;
}