Jul 7, 2008

Ie Problems Again - Every browser displays it right except IE

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

free web hosting

Ie Problems Again - Every browser displays it right except IE

BooZker
I have my site http://boozkerstweaks.trap17.com and just when i thought i had everything perfect i just had to go to my Windows computer to check it because i made it on my mac and tested it in:

Netscape, Opera, Safari, and Firefox. I only had stupid IE and it displayed it horribly wrong. There is nothing wrong with the CSS. I checked the mathematics of it and it seems fine. It's like it's displaced. The header and the rest of the site are disconnected. There is also a white line down the right side of the page. I think it might have something to do with the CSS's background-color or border.

This really frustrates me dry.gif this might be because i can hardly stay awake and i'm trying to fix it, but even so i just dont feel like fixing it. Does anyone know if this happens in IE6? Because i was testing it in IE7. I'm sure SM is going to be here and he will be "duh its the..." laugh.gif

style sheet is: http://boozkerstweaks.trap17.com/style.css

 

 

 


Reply

BuffaloHELP
I think the problem is you have many classes but not enough structure--I hope that is the right expression.

Try defining your body to a specific width something like
CODE
#body {
    margin: 0 auto;
    width: 800px;
    padding: 0 0; }


and then define a header div as ID etc.

So the basic structure of your site would be something like:
HTML
<body>
<div id="header">

</div>

<div id="content">

<div id="right_menu">
</div>

</div>
</body>


This way, they are all aligned within the "body" and cannot wander about. You can even do DIV for left and DIV for right and use float to divide content from menu.

 

 

 


Reply

BooZker
OK i will try this. In other words though you are just saying that i should move the CSS tags in the order that they should be read and then set a specific width for the body?

I wish IE wasnt the most used browser!

Reply

BuffaloHELP
I don't think order of appearance has nothing to do with it. But looking at your css file, you have bunch of CLASS (.tag) but nothing that definds the ID tags...

Since I myself is learning css, my description could be wrong. But what I know is that you need to confine your DIV's within BODY with set width.

Reply

BooZker
hmm alright. I will go and set the header and footer divs to 758 and then main to 600 and right_side to 158 and see if this fixes the problem.

Reply

Saint_Michael
Well after trying some stuff out I finally got it. So give me a " I LOVE YOU SM" laugh.gif

CODE


.main {
width: 758px;
background:#000066;
padding: 0px;
border-bottom:none;
}


I predicted it was margins or padding biggrin.gif

Reply

BooZker
GOD! Everytime it's so simple and i can't find it. You have to give me some slack though. I have only been making graphics and sites for a little over a year now.

Reply

jlhaslip
I find that using this code:
CODE
body { margin:0; padding: 0;}
and then setting specific margins and paddings in the sheet helps to eliminate most problems. Each Browser has its own default settings for margins and padding, so eliminate the defaults and the browsers will all treat the page the same.

As for the order of the html content on the page, I find that it is best to have the div's in the html code in the order which they appear on the page. For example, insert the float:left before the float:right for the same parent element. Otherwise, there is some confusion between browsers and the way they are rendered.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. ie6 submenu problem display - 231.77 hr back.
  2. ftp using ie, cannot view jpg files - 257.24 hr back.
  3. ie problems displaying advertising - 530.95 hr back.
Similar Topics

Keywords :

  1. Span "display: _____" Problems
    block vs inline (2)
  2. [problem] Css Unordered List Display Problems Ie6 Bug
    Making unordered list under unordered list couses some padding to appe (2)
    I just started designing something that i thought is gonna be a really simple xHTML strict template.
    Everything is right except that i thought of using unordered list, some other list under that list.
    Well this is the code for the Menu that is cousing me problems CODE <div
    id="lijevo">     <ul>         <li>List1</li>
            <li>List2</li>         <li>             <ul>
                <li>List 2 Sublist</li>                 <li>
                        <ul>               ....
  3. Css Trouble
    ul submenu displays weird in IE (7)
    I have asked for help in the css creator forum, but I haven't got an answer. Well some one
    actually posted something but didn't work, so I will post my trouble here to see if somebody can
    bring light... thanks in advance... QUOTE Menu in css, shows fine in the good browsers. I
    use the suckerfish dropdown js principle to have a vertical menu with a submenu poping out. I think
    I have some issues as to xhtml or css around all over the index, but the trouble I can't fix is
    the submenu acting weird in IE6 and it looks like in IE7 also. When you hover over....
  4. Height % In Ff Problems With Css
    (3)
    Does anyone know how to make the height of a div in firefox equal to the percentage you input? For
    example if I put blablabla the div container will only be as high as the text makes it, when in
    internet explorer it does make it take up 100% of the page or whatever height in percentage I input
    in it. by the way, html, body {} have 100% height in them, so does the container that has the div
    element. Example: html,body {height:100%;} #container {height:100%;} #div {min-height:100%;} the
    one called #div is the one I want with 100% height. Thanks for any help.....
  5. Browser Issues
    CSS and embeded DIVs (7)
    Okay so I'm redisigning my site (here: http://d-gression.trap17.com/new/index2.html) and need
    help with the CSS that makes the main content. On IE it works which scares me because I'd much
    rather have it work on FireFox. So here's the CSS I used: CODE BODY{
    background-color:#22324f; background-image:url('./images/bg.gif'); }
    DIV.frame { background-color:#07571f; border:solid #000000 2px; width:740px; }
    img.banner { } DIV.green { background-color:#6d966c; width:730px; } DIV.menu {
    width:145px; backgroun....
  6. Css Positioning Trouble
    in FIREFOX! yet IE displays it as i want (6)
    Wait wait! im not complaining about firefox! i couldnt ever do it, but the fact is that for
    the very darn first time IE is actually showing the thing as i want it... I have a table inside a
    div, and i want the table to be right aligned, and IE6 does so (not the same for ie for mac though)
    but firefox keeps it to the left, the best thing i've achieved with this is a fixed position
    which does not look good while resizing...... ive also tried floating and even adding a wrapper...
    so i dont know what to do... this is the site: http://www.cucea.udg.mx/cucea/gr....
  7. Embeded Div's And Css Problems
    (10)
    I am making a website dessign that makes heavy use of CSS and DIV's now When I view my site as
    it is in IE it works almost perfect, but when I open it in Firefox the main background dissapears,
    here is the site here is the site and here is the external CSS file: CODE BODY {  
     background-color:#ffffff; background-image: url(images/topimage.jpg);
    background-repeat:repeat-x; } DIV.content { width:760px; position:absolute;
    top:19px; left:19px; } DIV.head { width:758px; height:125px;
    background-image: url....
  8. css scripting problems need help
    NEED HELP (5)
    for some unknown reason the scroll bar info will not kick in it eithers makes the page doe wierd
    things or nothing at all and i know i got it right so whats need help QUOTE BODY {
    font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; margin:
    0px; padding: 0px; background-color: #2d3851; } h1 { font-family: Times New Roman, serif;
    font-size: 26px; font-weight: normal; color: #e9f2fc; } h2 { font-family: Verdana, Arial,
    Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #333333; } p { font-family:....

    1. Looking for Ie, Problems, Again

Searching Video's for Ie, Problems, Again
advertisement



Ie Problems Again - Every browser displays it right except IE



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE