okay, now need help.
I have been working on a site and everything was fine except for one issue; a div container was not being placed correctly within Firefox (fine in IE7).
I have modified the CSS and xHTML and everything is placing correctly except for this set below.
The CSS is:
#footer
{
width: 680px;
height: 32px;
border-top: 1px solid #333;
}
.element1
{
float: left;
width: 87px;
height: 32px;
}
.element2
{
float: left;
width: 500px;
height: 32px;
text-align: center;
vertical-align: top;
font-size: 0.9em;
}
.element2 a, .element2 a:link, .element2 a:visited
{
color: #333;
font-weight: normal;
text-decoration: none;
}
.element2 a:hover
{color: #f90}
The xHTML is:
<div id="footer">
<div class="element1"><a href=" src="images/valid-html401.png" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a></div>
<div class="element2"><a href="[company web address]" target="_blank">Website developed in partnership with [company name]</a> | Copyright © 2008</div>
<div class="element1"><a href=" style="border:0;width:88px;height:31px" src="images/vcss.gif" alt="Valid CSS!"></a></div>
</div> <!-- End div footer -->
The thing I wanted was to have the three elements side by side (E1, E2, E1) but in FF E2 appears low down against the first E1, and the same for the second E1 against E2.
If I simply set them all as class Element1 then everything works fine. If I set a style=" width: 500px;" within the div declaration then the system fails again.
The middle div must be wider to accomodate text but cannot be left to autosize because the text does not run completing from left to right over 500 pixels.
Any suggestions/advice? Thanks in advance...
I have been working on a site and everything was fine except for one issue; a div container was not being placed correctly within Firefox (fine in IE7).
I have modified the CSS and xHTML and everything is placing correctly except for this set below.
The CSS is:
#footer
{
width: 680px;
height: 32px;
border-top: 1px solid #333;
}
.element1
{
float: left;
width: 87px;
height: 32px;
}
.element2
{
float: left;
width: 500px;
height: 32px;
text-align: center;
vertical-align: top;
font-size: 0.9em;
}
.element2 a, .element2 a:link, .element2 a:visited
{
color: #333;
font-weight: normal;
text-decoration: none;
}
.element2 a:hover
{color: #f90}
The xHTML is:
<div id="footer">
<div class="element1"><a href=" src="images/valid-html401.png" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a></div>
<div class="element2"><a href="[company web address]" target="_blank">Website developed in partnership with [company name]</a> | Copyright © 2008</div>
<div class="element1"><a href=" style="border:0;width:88px;height:31px" src="images/vcss.gif" alt="Valid CSS!"></a></div>
</div> <!-- End div footer -->
The thing I wanted was to have the three elements side by side (E1, E2, E1) but in FF E2 appears low down against the first E1, and the same for the second E1 against E2.
If I simply set them all as class Element1 then everything works fine. If I set a style=" width: 500px;" within the div declaration then the system fails again.
The middle div must be wider to accomodate text but cannot be left to autosize because the text does not run completing from left to right over 500 pixels.
Any suggestions/advice? Thanks in advance...