Jump to content
  • Advertisement
Sign in to follow this  
Stiffler

[web] Firefox / IE 6-7 Difference

This topic is 4331 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm developing a web page with vs2005pro using asp.net c#. But i've run into a little bit of a stumbling block. I had developed most of my site when I started thinking about firefox, but when I tried it out on firefox it didn't work at all. So i went back to the basic's, a simple page using a simple content layout. This still doesn't work and I was wondering if you would help me... This is the firefox screenshot This is what I want (it's in ie 7) Here is the code for my default.aspx
<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="IPS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div id="content-container-three-column">
        Hyhy
        <div id="content-side1-three-column">
            Hello
        </div>
        <div id="content-main-three-column">
            Middle
        </div>
        <div id="content-side2-three-column">
            End
        </div>
     </div>
</asp:Content>


and here is the relevent css code

#content-container-three-column
{
	width: 850px;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	margin-top: 3px;
	margin-bottom: 3px;
	background: url(Images/contentborder.gif) repeat-y;
	font-size: 12px;
	height: 100%;
	border: solid 2px green;
}

#content-main-three-column
{
	position: relative;
	width: 415px;
	float: left;
	margin-left: 18px;
}

#content-side2-three-column
{
	margin-right: 10px;
	float: right;
	width: 160px;
	font-size: .9em;
}

#content-side1-three-column
{
	float: left;
	width: 210px;
	font-size: .9em;
	margin-left: 6px;
}


It looks like to me that firefox doesn't accept my nested div's. But why is this... Thanks a lot in advance for the help.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!