Hi,
My web page page looks fine until I change the paragraph font to italic then it looks like this:
http://www.mycourse.org.uk/lew040857...b/master2.html
Can anybody tell me why it does this and the best way to fix it so that I can have italic text?
Thanks
R
The css is:
@charset "utf-8";
body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
}
h1 {
font-family: serif;
font-size: 36pt;
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
h2 {
font-family: serif;
font-size: 24pt;
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
p {
font-family: serif;
color: #FFFFFF;
font-size: 18pt;
text-align: justify;
font-style: italic;
}
.twoColFixRtHdr #container {
width: 960px; /* the auto margins (in conjunction with a width) center the page */
border: 2px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
background-color: #FFFFFF;
background-image: url(images/background_tile_960x20.jpg);
background-repeat: repeat-y;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
.twoColFixRtHdr #header {
height: 250px;
padding-top: 0;
padding-right: 35px;
padding-bottom: 0;
padding-left: 35px;
background-color: #0066CC;
}
.twoColFixRtHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.twoColFixRtHdr #sidebar1 {
float: right; /* since this element is floated, a width must be given */
width: 302px;
padding-top: 30px;
padding-right: 29px;
padding-bottom: 15px;
padding-left: 29px;
}
.twoColFixRtHdr #mainContent {
margin-top: 0;
margin-right: 360px;
margin-bottom: 0;
margin-left: 0;
padding-top: 15;
padding-right: 10px;
padding-bottom: 15;
padding-left: 10px;
}
.twoColFixRtHdr #footer {
background-color: #0066CC;
height: 100px;
padding-top: 0;
padding-right: 10px;
padding-bottom: 0;
padding-left: 20px;
}
.twoColFixRtHdr #header h1 {
font-family: Arial;
font-size: 60px;
font-style: italic;
color: #FFFFFF;
}
.twoColFixRtHdr #container .slogan {
position: absolute;
left: 532px;
top: 37px;
font-family: serif;
font-size: 24px;
font-style: italic;
color: #FFFFFF;
}
.twoColFixRtHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}







Bookmarks