I have a stylesheet
And a web page (Extract)
Now this works fine in IE but the three sections show up in block display mode, the first one centred across the page, the second and third aligned to the left in Firefox 1.0.7
Does anyone know why?
I'm quite new to css and not sue about the differences between the browsers.
Code:
/* Body tag */
/* Preset the font family and the background colour */
Body
{
Font-size: medium;
Color: black;
Font-Family: Arial, SansSerif;
Background:#FFFFcc;
}
/* Anchor/Link tags */
/* set the link colour to blue */
a:link
{
Color:#0000ff;
}
/* Set the visited, hover and active colours for links to be red */
a:visited, a:hover, a:active
{
Color:#ff0000;
}
/* Set the Logo section */
/* Establish the width and height of the logo, the border settings and the alignment */
#Logo
{
Border:none;
Text-align:center;
}
#Logo img
{
Width:443;
Height:100;
}
/* Establish a set of divisions to break the page into three columns */
#ThreeColumn
{
Display:block;
Border:none;
Margin:2px;
}
#ThreeColumn #Column
{
Font-size:small;
Display:inline;
Width:33%;
Text-Align:Center;
Vertical-align:top;
Border:none;
Padding: 2px;
Margin:2px;
overflow: auto;
}
/* Establish a set of divisions to break the page into two columns */
#TwoColumn
{
Display:block;
Border:none;
Margin:2px;
}
#TwoColumn #Column
{
Font-size:small;
Display:inline;
Width:49%;
Text-Align:Center;
Vertical-align:top;
Border:none;
Padding: 2px;
Margin:2px;
}
/* Provide a menu */
/* Ensure that the menu displays in line */
#Menu
{
Display:block;
Font-Size:small;
Width:100%;
Text-Align:Left;
Vertical-Align:Top;
Border-Right:None;
Border-Top:None;
Border-Bottom:None;
Border-Left:None;
Margin: 0px;
Padding: 0px;
}
#Menu a
{
Display:inline;
Text-Align:Center;
Margin: 2px;
Padding: 2px;
}
/* Provide a content section */
#Content
{
Display:block;
Font-Size:small;
Width:100%;
Text-Align:Left;
Vertical-Align:Top;
Border-Right:None;
Border-Top:None;
Border-Bottom:None;
Border-Left:None;
Margin: 2px;
Padding: 2px;
}
#Content h1
{
Text-align:center;
}
And a web page (Extract)
Code:
<!-- Add three columns to show the address, ISO Certification and additional image -->
<Div Class="ThreeColumn">
<!-- Address -->
<Div Class="Column">
<p>Address1<br/>
Address2<br/>
Address3</p>
</Div>
<!-- ISO Certification -->
<Div Class="Column">
<b style="Font-size:large;">ISO 9001 Certification</p>
</Div>
<!-- Additional Image -->
<Div Class="Column">
<IMG SRC="images/myimage.gif">
</Div>
</Div>
Now this works fine in IE but the three sections show up in block display mode, the first one centred across the page, the second and third aligned to the left in Firefox 1.0.7
Does anyone know why?
I'm quite new to css and not sue about the differences between the browsers.