473,507 Members | 11,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I have one main div & in that main div i have included 2 differrent div it show good

1 New Member
I have one main div & in that main div i have included 2 differrent div it show good result in firefox but in ie it doesn't show that same result div just get one above the other.plz do help me.

my ccs is:

/* General elements */
body

{



padding: 0;

background: #db7093;

text-align: justify;

font-family: "Georgia", "Times New Roman","sans serif";

font-size: 12px;

color: black;

}



h1, h2, h3

{

margin-top: 0;

color: #8C0209;

}



h1

{

font-size: 1.6em;

font-weight: normal;

}



h2

{

font-size: 1.6em;

}



h3

{

font-size: 1em;

}



table

{

align:center;

border:1;

}

a

{

text-decoration: none;

color: #8C0209;

}



a:hover

{

border-bottom: none;

color : olive;

}



a img

{

border: none;

}



/* for Sidebars in menu section*/



.sidebar

{

width: 220px;

font-size: 12px;

margin-left:5px;

position:relative;
height:200px;



}



.sidebar ul {

margin: 0;

padding: 0;

list-style: none;

}



.sidebar li {

padding: 0 0 20px 0;

}



.sidebar li ul {

}



.sidebar li li {

margin: 0 20px 0 15px;

padding: 8px 0px;

border-bottom: 1px #BBBBBB dashed;

}



.sidebar li h2 {

height: 30px;

margin: 0 0 0 0;

padding: 10px 15px 0px 15px;

background: #db7093 url(../images/img05.jpg) no-repeat left top;

letter-spacing: -1px;

font-size: 16px;

color: #FFFFFF;

}



.sidebar a

{

}



/* for spaces */



.spacer10

{

height:10px;

}



/*for main div's*/



.mainDiv

{

text-align:center;border:1px solid ;width:1000px;background:#FFFFFF;

}



.mainContentDiv

{

width:990px;padding-top:10px;margin-left:5px;height:auto;

}



.mainHeaderDiv

{

width:990px;padding-top:10px;margin-left:5px;height:160px;

}



/* for header logo */



.headerLogo

{

width:150px;height:140px;margin-top:5px;margin-left:5px;

}



.headerBanner

{

width:830px;height:140px;margin-top:5px;margin-right:5px;

}



.colorBorder

{

border:1px solid;

border-color:#ffe4e1;

}



.contentHolder

{

width:750px;

bottom:200px;

left:235px;

position:relative;

/*float:top;*/

min-height:570px;

background-color:#e8e8e8;

/*background-color:#d3d3d3;*/

font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;

font-size:14px;

a-hover:FFD700;

}





.tdLeftAlign

{

text-align:left;

line-height:25pt;

}



.tdCenterAlign

{

text-align:center;

line-height:25pt;

}



.msgText

{

color:#db7093;

text-align:center;

line-height:25pt;

}





.errorMsg

{

color:red;

text-align:left;

line-height:25pt;

}



.tdHeading

{

text-align:center;

line-height:25pt;

color:blue;

font-weight:bold;

}



.tdSpacer

{

line-height:30pt;

}



.tdData

{

text-align:left;

line-height:25pt;

color:blue;

font-weight:bold;

font-size:10pt;

}



.blockHeading

{

text-align:left;

line-height:25pt;

color:blue;

font-weight:bold;

font-size: 15px;

}



.pageTitle

{

text-align:center;

line-height:25pt;

color:green;

font-weight:bold;

font-size: 20px;

text-decoration:underline;



}



.spacer20

{

height:20px;

}



and page is actually includes three diffrent files PageHeader.jsp,PageFooter.jsp & SideMenu.jsp.
============================
PageHeader.jsp

====
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Dating Administration Tool</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link href="../include/css/default.css" type="text/css" rel="stylesheet" />
<link href="../include/css/popup.css" type="text/css" rel="stylesheet" />
<script src="../include/js/validate.js"></script>
<script src="../include/js/ajaxhandler.js"></script>
</head>
<body>
<!--div id="closeDiv" style="height:20px;border:1px solid;text-align:left;bachground-color:#db7093;display:none"><a href="#" onClick="javascript:hidepopup('divPopUp','layerpop ');"><img src="" alt="Close" /></a></div-->
<div id='divPopUp' STYLE="position: absolute;margin-left:250px;margin-top:100px;align:center;z-index: 10000;background-color:white;display:none">
</div>
<div id='layerpop' STYLE="position: absolute;z-index:9000;height: 100%; width:100%; background-color: black ;opacity:.5;background:black;display:none;"></div>


<table>
<tr>
<td width="49%"></td>
<td width="2%">

<div class="mainDiv colorBorder">

<div class="mainHeaderDiv">
<table border="0">
<tr>
<td class="headerLogo colorBorder"><img src="../include/images/datinglogo.gif" height="150"></td>
<td class="headerBanner colorBorder"><img src="../include/images/datingbanner.png" height="150" width="850"></td>
</tr>
</table>
</div>

<div class="mainContentDiv colorBorder">

SideMenu.jsp
============

<div class="spacer20" style="text-align:right;width:980px;border:0px solid;height:60px;" >
<table border="0" width="100%" cellspacing="5px">

<tr>
<td>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</div>

<div class="sidebar">
<ul>
<li>
<h2>Hedaing</h2>
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</li>
</ul>


</div>


PageFooter.jsp
===========
</div>
<div class="spacer10"></div>
<div class="spacer10"></div>


<div style="width:990px;">text<br/>
a link <a></a>
</div>

<div class="spacer10"></div>
</div>
</td>
<td width="49%"></td>
</tr>
</table>

</body>

</html>

================

i am including these files as first PageHeader.jsp , SideMenu.jsp and then code for content in that i am starting with <div class="contentHolder">
<div class="spacer10"></div>

all content
</div>

and then PageFooter.jsp
Oct 30 '09 #1
1 2026
TheServant
1,168 Recognized Expert Top Contributor
First of all, please use [code] tags around your code which makes it easier to read.

Secondly, IE does not conform to web standards, so generally, if it looks good in FF and is valid HTML and CSS, it's good work. IE has so many issues (getting better very slowly) that it's not worth changing all your CSS to accomodate for it. Unfortunately a lot of people still use it, so you need to do something.

I suggest that you make and include a special ie.css if the browser is IE, and in that, include all of your changes for CSS, so that it doesn't mess up your real coding.

One fix which I come across a lot to get you started is giving div's widths of 100%, even when not needed, so have a look at that. Here are some links for you:
Validate HTML
Validate CSS
Nov 1 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

192
8722
by: Kwan Ting | last post by:
The_Sage, I see you've gotten yourself a twin asking for program in comp.lang.c++ . http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=45cd1b289c71c33c&rnum=1 If you the oh so mighty...
7
2367
by: Steven C. | last post by:
When you compile a cpp program that includes a template class in a .h file where does the compiled code go for that templated class? If it went in the obj for the cpp program seems to me you could...
6
6824
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of...
72
5301
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
19
3980
by: Mel | last post by:
when downloading files from my site, when file types are known (i.e *.doc) browsers open the file for viewing. is there a way to disable that and just present the save as dialog (same as for...
20
3297
by: andre | last post by:
HI, I’m learning C# and already know VB .Net. I noticed that C# you have a Static Void Main () (entry point of the app). Well that got me thinking, I was told that VB.net removed “The...
7
1955
by: Mark Thiel | last post by:
I am working on a project for my company, which has a structure of six major areas. Certain people need to have access to all of the data, whereas other people only require access to the...
3
12526
by: sohan | last post by:
Hi, One question - to connect to a db2 database in the same UNIX server we can use from UNIX command prompt: db2 connect to <dbnameUSer <nameusing <pwd> Now if the db2 database is in a...
7
5339
by: bhavin30 | last post by:
Is there a way to obtain user information (using LOGON_USER server variables) when you have set up the security to Anonymous Access? I have tried setting the security to both Anonymous + Window...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.