Solved

problems with div's for IE and Firefox

Posted on 2007-11-30
3
2,411 Views
Last Modified: 2013-12-08
here is my issue...I am created a new web site that has a header 'graphic', then a menu 'row' (horizontal menu), then a main content area, then a footer area. Each of these 'areas' (divs) has a background image associated with them. I have been 'fairly' successful in get this all to be 'centered' in my browser by using the       margin: 0 auto; setting in my stylesheet.  Then I went on to the content...the Content I was setup as two 'columns' so I setup a table to set on top of the content 'image' and setup margin-top, margin-right, values for the 'content' div which is where the table is sitting...Then I wanted to add some 'graphics' to the right column of the table and have 'divs' setting 'on top' of those graphics...I created another table to sit inside of the right column and have this secondar table have 3 rows...each row holding a 'graphic'.  This was working in IE but when I went to view it in Firefox, Firefox was having problems with the secondary table graphic being in the right place, and the text (which was defined in a div) not appearing over the graphics...I know this is all 'text' and I don't have a website to show you and there is no way for me to 'copy/paste' a screen show of what I am seeing in Firefox...Any suggestions.
0
Comment
Question by:cenetadmin
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20391547
Other than not using tables for layout, I can't offer much advice without seeing any code.

Could you paste some of your html and css?
0
 

Accepted Solution

by:
cenetadmin earned 0 total points
ID: 20430555
What I want to do is within the 'content' area div I want to place other 'divs' within it that will appear 'on top' of it and then those will be layout almost 'absolute' or at least where I can put them to look like they are in columns...(that is why I used a table)...I am sure it is something simple but I couldn't ever get the divs to appear that way, they would also show up above or below...I took them out for now and just sent you a plain masterpage and the stylesheet...
Thanks
JC
Here is some of my stylesheet.
BODY
{
      /*SCROLLBAR-FACE-COLOR:#BED3CA; this was working...*/
      background-color: #648397;
      text-align:left; /*center*/
      text-align:center;
      margin-left:0px;
      margin-top:0px;
}

.Header {
      background-image: url(../images/header.jpg);
      background-repeat: no-repeat;
      background-position: left; /*center*/
      background-position:center;
      height: 61px;
      top: 1px;
}


.NavBar {
      background-image: url(../images/navbar.jpg);
      background-repeat: no-repeat;
      height: 36px;
      margin: 0 auto;
      text-align: left;
      width: 720px;
      margin-top: 5px;
}
.NavBarHolder
{
      width:713px;
      margin-top: 2px;
}
.ContentBackground1
{
      /* this is the silver background...*/
      background-image: url(../images/content1.jpg);
      background-repeat: no-repeat;
      height: 612px;
      margin: 0 auto;
      text-align: left;
      border: 2px solid #648397;
      width: 720px;
}
.Content
{
      /* what the content displays in, overlays the contentbackground1 */
      margin-top: 1px; /* was 5px */
      margin-right: 18px;
      margin-bottom: 5px;
      margin-left: 17px;
      /*background-color:Aqua; */
      /*border: 2px solid #000; */

      z-index: 1;
}
.Footer {
      background-image: url(../images/footer.jpg);
      background-repeat: no-repeat;
      height: 36px;
      margin: 0 auto;
      text-align: left;
      width: 720px;
      border: 2px solid #648397;
}

.FooterCopyright
{
      font-family: "Trebuchet MS";
      font-size: 14px;
      margin-top: 7px;
      margin-right: 18px;
      margin-bottom: 7px;
      margin-left: 18px;
      /*border: 2px solid #000; */
}



Here is my 'master page'
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Cultural Exchange Network</title>
            <link rel="stylesheet" type="text/css" href="Common/Default1.css" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="Header" id="Header"></div>
        <div class="NavBar" id="NavBar" >
  <div class="NavBarHolder" id="NavBarHolder">
   
 
 
  </div>
</div>
<div class="ContentBackground1" id="ContentBackground1">
      <div class="Content" id="Content">
      
          <div>
        <asp:contentplaceholder id="MainContent" runat="server">
        </asp:contentplaceholder>
    </div>
      
      </div>
</div>
<div class="Footer" id="Footer">
  <div class="FooterCopyright" id="FooterCopyright">
      <asp:Label  CssClass="Copyright" ID="Label1" runat="server" Text="Label">© 2008 CENET</asp:Label></div>
</div>

    </form>
</body>
</html>
0
 

Author Comment

by:cenetadmin
ID: 20449325
any suggestions from this code?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS not updating in FF and ipad 6 78
How can i modify my File download link ? 6 61
Browser annoying behavior 18 61
Can not open the Access Help ? 3 61
After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question