Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
making a webpage compatible in ie and ff.
Old 08-21-2006, 12:51 AM making a webpage compatible in ie and ff.
RuthM's Avatar
Novice Talker

Posts: 12
Name: Ruth
Location: California
Trades: 0
I made a webpage that looks fine in IE but not in FF. I'm very new to this stuff. Any advice on what areas I need to work on to make it compatible in both browsers?
Here is the page.
Ruth's Assignment Center
Thanks....Ruth
RuthM is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-21-2006, 05:14 AM Re: making a webpage compatible in ie and ff.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
start with a DTD in the document
W3C QA - Recommended list of DTDs you can use in your Web document

body definition; should be verdana not verdant

#links width:165; 165 what ? anything other than 0 needs a unit specifier.

in #bodyall change margin:0 115px ... to margin:0px auto and remove the commas. (the element will be centered in the page at all resolutions then. By using fixed margins parts of the content will be off-page at low resolutions.

in #welcome #other font-size=20px; should be font-size:20px;

put a semi-colon at the end of every definition, it won't make a difference technically, but it will save you forgetting them if you add more property/value pairs later.

Move the style sheet to an external file.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-21-2006, 02:32 PM Re: making a webpage compatible in ie and ff.
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
Maybe you could make use of this:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Ruth's Assignment Center</title>
    <style type="text/css">
    /* CSS Browser Clean Up */
    body {
      margin: 0;
      padding: 0;
    }
    :link, :visited {
      text-decoration: none;
    }
    ul, ol {
      list-style: none;
    }
    h1, h2, h3, h4, h5, h6, pre, code, kbd {
      font-size: 1em;
    }
    dl, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input {
      margin: 0;
      padding: 0;
    }
    a img, :link img, :visited img, abbr {
      border: none;
    }
    address, abbr {
      font-style: normal;
    }
    </style>
    <style type="text/css">
    /* Page Styling */
    body {
      color: #6e0000;
      background: #660000 url('http://www.glennstevenson.com/rmoratz/swirl.gif');
      font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
      min-width: 750px;
      font-size: 16px;
    }
    #bodyall {
      margin: 5% auto;
      width: 750px;
      color: inherit;
      background: #c57a7a;
      border: inset;
      padding: 2.5%;
    }
    #title {
      display: block;
      font-size: 2em;
      text-align: right;
    }
    #line1 {
      margin-bottom: 5%;
    }
    #links {
      display: block;
      float: left;
      width: 18%;
      background: url('http://www.glennstevenson.com/rmoratz/swirl.gif');
      border: outset;
      text-align: center;
    }
    #links li, #links li a, #links li a:link {
      display: block;
      height: 1.3em;
      line-height: 1.3em;
      color: #e38c8c;
      background-color: inherit;
    }
    #links li a:visited {
      color: #e38c8c;
      background-color: inherit;
    }
    #links li a:hover {
      color: #a50000;
      background-color: inherit;
    }
    #welcome, #other {
      margin-left: 25%;
      font-size: 1.5em;
    }
    #books {
      display: block;
      text-align: center;
    }
    #last {
      clear: both;
      visibility: hidden;
    }
    </style>
  </head>
  <body>
    <div id="bodyall">
      <h1 id="title">Ruth's Assignment Center</h1>
      <hr id="line1" />
      <ul id="links">
        <li><a href="assignment1/">Assignment 1</a></li>
        <li><a href="assignment1/">Assignment 2</a></li>
        <li><a href="assignment1/">Assignment 3</a></li>
        <li><a href="assignment1/">Assignment 4</a></li>
        <li><a href="assignment1/">Assignment 5</a></li>
        <li><a href="assignment1/">Assignment 6</a></li>
        <li><a href="assignment1/">Assignment 7</a></li>
        <li><a href="assignment1/">Assignment 8</a></li>
        <li><a href="assignment1/">Assignment 9</a></li>
        <li><a href="assignment1/">Assignment 10</a></li>
      </ul>
      <p id="welcome">Hello and welcome to my assignment center, where all my assignments can be found in one central and easy to find location.</p>
      <div id="books"><img src="http://www.glennstevenson.com/rmoratz/books1.gif" alt="pictures of books" width="200" height="62" /></div>
      <p id="other">I plan to add more to this page as I learn to do things in javascript. So for now it's pretty plain.</p>
      <div id="last"><!-- --></div>
    </div>
  </body>
</html>
Which is just a rewrite of your page.

Things you want to possibly do is eliminate the overuse of ID attributes. An example of how you could do such things based on the code above is this:

before:
Code:
#welcome, #other {
  margin-left: 25%;
  font-size: 1.5em;
}
after:
Code:
#bodyall p {
  margin-left: 25%;
  font-size: 1.5em;
}
Where this will set all 'p' elements inside the bodyall container.

Another concern I have is the color and background-color for some elements, especially hover where the colour change is too close to the background. One thing to look at is that on the body, you're using a background image, the background color should be a color from that, the color of the default font should be a color that is easily seen with that background. This will mean you'll actually need to specify the color of the wrapper differently, but that isn't too difficult.

I should have also mentioned that I've got two style elements declared, the first one is just a browser clean up, removing default and sometimes browser dependant settings so that I have a clean slate to work with. The second is the styling used for this page. It would be a good idea to put them in their own external CSS file and just link to them. Making sure that the clean up is first loaded, otherwise it's changes can override your own if loaded last.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.

Last edited by mastercomputers; 08-21-2006 at 02:44 PM..
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 08-21-2006, 05:12 PM Re: making a webpage compatible in ie and ff.
RuthM's Avatar
Novice Talker

Posts: 12
Name: Ruth
Location: California
Trades: 0
Thank you both very much for your help. I will definately put it to use.
..............Ruth
RuthM is offline
Reply With Quote
View Public Profile
 
Old 08-22-2006, 04:41 AM Re: making a webpage compatible in ie and ff.
Novice Talker

Posts: 4
Name: eka jay man
Trades: 0
For me I will 3 browser in my pc (FF, IE, Opera)

and preview my project on them before upload.

It's very annoying
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
ekaman is offline
Reply With Quote
View Public Profile
 
Old 08-22-2006, 07:57 PM Re: making a webpage compatible in ie and ff.
kIDJOE's Avatar
Extreme Talker

Posts: 186
Location: Hollywood, CA
Trades: 0
I would suggest you try to stick with CSS if you are just starting... better off learning well CSS than HTML to go CSS as a next step.

Good luck
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Reply     « Reply to making a webpage compatible in ie and ff.
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28879 seconds with 12 queries