+ Reply to Thread
Results 1 to 8 of 8

Thread: HTML/CSS issue

  1. #1
    AttackBunnyPro is offline x10Hosting Member AttackBunnyPro is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    26

    HTML/CSS issue

    So, I have a page which looks fine in most browsers, but has problems with Internet Explorer and Opera.

    This contains screenshots of all of the browsers, etc. http://browsershots.org/http://www.a...s.com/test.php

    This is the CSS that is probably affecting it:

    HTML Code:
    body
    { font-family: calibri;
    background-color: black;
    color: white;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-size: 18px;
    }
    div.loginBox
    {
    height: 96px;
    margin: 4px;
    background-color: #0094FF;
    float: right;
    width: 520px;
    }
    div.navBox
    {
    height: 96px;
    margin: 4px;
    background-color: #7F0000;
    float: right;
    width: 520px;
    }
    div.newsBox
    {
    margin: 4px;
    background-color: #B200FF;
    float: left;
    width: 264px;
    }
    div.currBox
    {
    margin: 4px;
    background-color: #0094FF;
    float: left;
    width: 264px;
    }
    div.aboutBox
    {
    margin: 4px;
    background-color: #FDB739;
    float: right;
    width: 520px;
    }
    div.gamesBox
    {
    margin: 4px;
    background-color: #7FFF8E;
    float: right;
    width: 520px;
    }
    Last edited by AttackBunnyPro; 02-02-2009 at 08:58 PM.

  2. #2
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Re: HTML/CSS issue

    use a condition comment tag to add some css for only ie.

    HTML Code:
    <!--[if IE]><link rel="stylesheet" href="ie.css" /><![endif]-->

  3. #3
    ichwar's Avatar
    ichwar is offline Community Advocate ichwar is an unknown quantity at this point
    Join Date
    Dec 2008
    Location
    NC, USA
    Posts
    1,454

    Re: HTML/CSS issue

    yes, use that code for ie

    I'm not sure about opera though. try a google search on opera conditional comments.

  4. #4
    RRJJMM is offline x10Hosting Member RRJJMM is an unknown quantity at this point
    Join Date
    May 2008
    Location
    Ohio
    Posts
    42

    Re: HTML/CSS issue

    You might get more consistent results across browsers if you try something like this:

    create an outer "wrapper" for centering.
    build a header within the wrapper.
    add an internal wrapper for your main content.
    create a two column layout with the "main content" div.

    There are several examples of how to produce a two column layout here. It is possible that they have a better way of organizing your entire page than I suggested. Anyway, once you have the two column layout constructed, adding your colored boxes within one of the columns as "classes" should be relatively easy.

    I hope this helps. My experience is limited by I have found by experimentation that grouping elements within wrappers tends to make things more predictable.

    Good Luck,
    RJM

  5. #5
    libecono is offline x10Hosting Member libecono is an unknown quantity at this point
    Join Date
    Nov 2008
    Location
    Meerbusch, Germany
    Posts
    8

    Re: HTML/CSS issue

    Perhaps you could put "width: 800px;" in a div which you put directly under the body instead of formatting the body. It could be possible that IE and Opera don't accept CSS for the body.

  6. #6
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Re: HTML/CSS issue

    It could be possible that IE and Opera don't accept CSS for the body.
    i'm not sure about opera, but i'm pretty sure ie does.

  7. #7
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: HTML/CSS issue

    I have this problem a lot so I have written a simple page (in php) that will allow you to alter .css and test it without having to change- upload-test etc.

    The page layout already has the standard container/header/content/columns/footer layout so you can just play around with it.

    Just remember to change the extention to .php before you ftp to the server.

    Hope it helps.
    Attached Files

  8. #8
    libecono is offline x10Hosting Member libecono is an unknown quantity at this point
    Join Date
    Nov 2008
    Location
    Meerbusch, Germany
    Posts
    8

    Re: HTML/CSS issue

    Alternatively, you can use Firebug (extension for Firefox), if you want to test modifications to html or css (even when surfing across the internet, you can instantly view and edit the source, because the result is only applied temporarily).

+ Reply to Thread

Similar Threads

  1. integration issue between support, cpanel, forum ????
    By holeepassion in forum Free Hosting
    Replies: 4
    Last Post: 12-14-2008, 09:50 PM
  2. Possible GD issue, possible me being an idiot issue
    By ViperBlade in forum Free Hosting
    Replies: 4
    Last Post: 09-05-2008, 02:28 PM
  3. Absolut server and subdomain issue
    By holeepassion in forum Free Hosting
    Replies: 5
    Last Post: 05-13-2008, 08:54 AM
  4. Domain Issue (URGENT)
    By netgeex in forum Free Hosting
    Replies: 14
    Last Post: 02-15-2008, 09:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers