LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-30-2006, 02:45 AM   #1
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
fix CSS HTML built webpage to render in IE


We all know that IE stands for idiot explorer.

I am the designer and part maintainer of http://www.bolivianscholarship.com and I have been hearing complaints that the menu at the side obscures some of the text. Apparently it is only a windows ie problem, but still, I need to fix it. Help, please? Oh yeah- here is the css file.

Code:
body {
  font-family: arial;
  color: #003366;
}

div.menu {
    background: #0066CC;
    align: left;
    width: 14.0em;
    height: *;
    position: absolute;
    
    top:0;

    padding-left:.5%;
    padding-right:.5-%;
    margin-left:1;
    margin-right:1;
  
  }
div.main {
    margin-left:14.2em;
    margin-right:5.2em;
    padding-left:2em;
    padding-right:1em;
  
}
  
  div.text {
    font-family: arial;
    margin-left:1em;
    padding-left:2em;
    text-align: justify;
    
  }
  div.noms {
    font-size: 80%;
  }
  
  h1 {
    color: #003366;
    font-family: arial;
  }
  h2 {
  }
  h3 {
  }
  h4 {
    font-style: italic;
  }
  
  ul {
    list-style-type: none;
  }
  
  a { 
    text-decoration: none;
  }
  a:link {
    color: #00CCFF;
  }
  a:visited {
    color: #999999;
  }
  a:hover {
    color: #003366;
  }
  
  a:border {
    color: #FFFFFF;
  }
thanks, I really appreciate the help.
 
Old 01-30-2006, 04:20 AM   #2
ebonhand
LQ Newbie
 
Registered: Jan 2006
Location: Australia
Distribution: Linux From Scratch
Posts: 6

Rep: Reputation: 0
If you insert "left: 0;" into div.menu, you'll find it should display correctly.
ie.

Code:
div.menu {
    background: #0066CC;
    align: left;
    width: 14.0em;
    height: *;
    position: absolute;
    
    top:0;
    left:0;

    padding-left:.5%;
    padding-right:.5-%;
    margin-left:1;
    margin-right:1;  
}
Happy to help,

- Ebonhand
 
Old 01-30-2006, 04:20 AM   #3
zaert
LQ Newbie
 
Registered: Jul 2005
Distribution: ubuntu, slackware
Posts: 21

Rep: Reputation: 15
quick fix:
class menu
position: relative;
float: left;
 
Old 01-30-2006, 11:15 AM   #4
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Rep: Reputation: 15
you may want to try and validate your CSS (things like align: don't exists, you want text-align there)
http://jigsaw.w3.org/css-validator/v...larship.com%2F

that is the results, and should help you out. you should also validate your html:
http://validator.w3.org/check?verbos...larship.com%2F
because that shows a few errors as well. fix these errors, and you will be in better shape in the long run
 
Old 01-30-2006, 05:06 PM   #5
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Original Poster
Rep: Reputation: 50
thankyou all, and especially to airswit, thanks for the css checker link.

Excellent.

titanium_geek
 
Old 01-30-2006, 05:33 PM   #6
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,352

Rep: Reputation: 129Reputation: 129
If you use Firefox then you might want to try installing the fireBug extension. It records the number of errors there are in the HTML page. The errors are broken down into JavaScript, CSS & XML.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A little HTML/CSS help? jon_k General 9 07-17-2005 01:49 AM
html/css retrodict Programming 5 11-01-2004 06:56 PM
html/css hylke Programming 0 06-27-2004 02:39 PM
CSS / HTML in Mozilla jpbarto Programming 4 04-26-2004 08:08 PM
Positioning with CSS in HTML PhilD Programming 7 08-26-2003 10:49 AM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration