SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Italic font screws my web page!

    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;
    }

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What's the problem? I see some normal looking italic text in all of my browsers...

  3. #3
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    What's the problem? I see some normal looking italic text in all of my browsers...
    OK, It looks like it's only an IE6 problem only, I thought it was screwing up my IE8 version too. I guess I'll need to put an if IE6 command to ignore italic text in paragraph text.

    Thanks for looking.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •