SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    I, Human FTIGraphix's Avatar
    Join Date
    Apr 2003
    0 Post(s)
    0 Thread(s)

    Divs not working inside Divs in Firefox

    I'm pretty new to this but I'm trying to code with web standards (strick xhtml and css). I've attached two pictures below - one of the site in IE (which looks great) and the other in Firefox (which is having problems). The problem seems to be Firefox not recognizing the div. Feel free to enlighten me on other problems as well =) Here's the code:

    Code HTML4Strict:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="">
    <title>USU Replication</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" href="css.css" type="text/css" />
    <div id="main">
    <div id="second">
    <p id="third">
    <img src="images/logo.jpg" alt="USU Logo"/>
    <p id="fourth">
    <a href="home.html">USU Home </a><a href="home.html">A-Z Index </a><a href="home.html">Calendars </a><a href="home.html">MyUSU </a>
    <a href="home.html">Contact </a><a href="home.html">people/web search</a>
    <div id="fifth">
    <h3 class="toplinks"><a href="home.html">Future Students </a></h3><h3 class="toplinks"><a href="home.html">Current Students </a>
    </h3><h3 class="toplinks"><a href="home.html">Alumni &amp; Friends </a> </h3><h3 class="toplinks"><a href="home.html">Faculty &amp; Staff </a></h3><h3 class="toplinks"><a href="home.html">Community &amp; Vistors</a></h3>
    <div id="mainpic">
      <a href=""><img src="images/extension_anniversary.jpg" alt="One Hundred Years!" /></a>
    <div id="welcome">
    <li>About USU</li>
    <li>Regional Campuses</li>
    <li>Student Life</li>
    <li>Visit the Campus</li>
        <a href=""><img
            alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
     <a href="">
      <img style="border:0;width:88px;height:31px"
           alt="Valid CSS!" />

    Code CSS:
    @charset "utf-8";
    /* CSS Document */
    body {background-color: #D5DDDA;}
    #main {background-color: #FFFFFF;
    	   width: 758px;
    	   margin: auto;}
    #second {background-color: #003366;
    		  background-image: url(images/header_bg.jpg);
    		  background-repeat: no-repeat;
    		  background-position: right;
    		  margin: 4px 5px 0 5px;
    		  width: 749px;}
    #third {float: left;}
    #fourth {float: right;
    		margin: 10px 30px;}
    #fourth a:link, #fourth a:visited {color: #BFBFFF;
    		   		font-family: Arial, Helvetica, sans-serif;
    		   		font-size: 12px;
    				text-decoration: none;}
    #fourth a:hover {color: #FFFFFF;}
    #fifth {background-color: #0054A8;
    		width: 749px;
    		clear: both;
    		margin: 1px 5px 2px 5px;
    		height: 20px;}
    #fifth a:link, #third1 a:visited {color: #FFFFFF;
    					font-family: Arial, Helvetica, sans-serif;
    					font-size: 12px;
    					text-decoration: none;
    					font-weight: bold;}
    .toplinks {float: left;
    		   margin: 2px 5px 0 2px;}
    .toplinks a:hover {background-color:#003366;}
    #mainpic {width: 749px;
    		  margin: 1px 5px 0 5px;
    		  clear: both;}
    #welcome {background-color: #2F26D9; 
    		  background-image: url(images/blue_logo_bg.jpg);
    		  background-position: bottom;
    		  background-repeat: no-repeat;
    		  color: #FFFFFF;
    		  font-family: Arial, Helvetica, sans-serif;
    		  font-size: 12px;
    		  clear: both;
    		  width: 150px;
    		  margin: 1px 1px 1px 5px;
    		  text-align: left;}
    h6 {font-family: Arial, Helvetica, sans-serif;
    	font-size: 12px;
    	font-weight: bold;}
    ul {list-style-type: none;
    	list-style-position: outside;
    	text-align: left;
    	float: left;
    	margin-left: 0px;}
    Attached Images Attached Images
    Last edited by FTIGraphix; Sep 21, 2007 at 20:35.


Posting Permissions

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