473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Nested divs in IE and Firefox.. rendering issues...

Hi,

Being a newbie, pardon me if this question has been answered. I was
finding it difficult to search for my problem on Usenet 'cos I was
having a tough time describing it.. Here gow.
I have a <div> within which I have another <div> ( i.e nested divs). I
find that Firefox gives me the result I want but IE 6 does'nt. IE six
chops out the title. WHat suggestions/recommnedations can you guys
offer. Book recommnedations would help too. Please also explain any
solutions you have..Thanks

Sample page is at http://home.cachecow.org:7777

Take a look thru both IE6 and Firefox and I think you'll understand
what I'm trying to say.

Here is my css:
html,body {
background-color:#999966;
height:100%;
margin-bottom:5%;
}
#content {

background-color:#CCCC99;
line-height: 16px;
font-family: Verdana;
font-size: 12px;
text-align: left;
padding-top:0px;
padding-right:1.5%;
padding-left:1.5%;
padding-bottom:0px;
height:100%;
margin-left: 5%;
margin-right:5%;
margin-top:5%;
border-style:dashed;
border-width:2px;
border-color:#996633;
}

h1#title {
font-family: Impact;
color:tan;
font-size: 68px;
}
Thanks

DrD

Jul 21 '05 #1
4 8765
On 19 Jan 2005 20:22:02 -0800, "drdeadpan" <vk***********@yahoo.com>
wrote:
[...]
I have a <div> within which I have another <div> ( i.e nested divs).
Not from what I can see in your source.
I find that Firefox gives me the result I want but IE 6 does'nt. [...]Sample page is at http://home.cachecow.org:7777


First of all You need to include a doctype declaration at the top of
your source to convince both FF and IE to go into standard rendering
mode (don't ask...)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> ... etc ...

--
Rex
Jul 21 '05 #2

Your absolutely right. My mistake.
I had the title and content in divs but then removed it and added the
styles to the H1 tag. Sorry.
In any case, I have added the DOCTYPE but the issue persists. Ok, now
that you've corrected me, what am I doing wrong or what should I be
doing correctly to make sure they render the same. My heading still
gets chopped off in IE 6.0

DrD

Jul 21 '05 #3
On 20 Jan 2005 06:48:11 -0800, "drdeadpan" <vk***********@yahoo.com>
wrote:
[...]
In any case, I have added the DOCTYPE but the issue persists. [...]My heading still gets chopped off in IE 6.0
Here you go...

Markup...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"<html
<head
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"<title>Ho**@Cachecow.org</title
<link rel="stylesheet" type="text/css" href="./main.css"</head
<body
<div id="content"
<h1 id="title">Cachecow.Org...</h1
</div
</body
</html


Style sheet...

html, body {
background-color: #999966; color: #000000;
margin-bottom:5%; font-size: 100%; height: 100%;
}

#content {
background-color: #CCCC99; color: #000000;
font-family: Verdana, sans-serif; text-align: left;
margin: 5%; border: dashed 2px #996633; padding: 0 1.5%;
height: 100%;
}

h1#title {
background-color: #CCCC99; color: #000000;
font-family: Impact, sans-serif; font-size: 500%;
margin: 0; border: solid 1px #000000; padding: 0;
line-height: 100%;
}

Now; promise to go read up on both markup and style sheet specs.
(and please do not specify Verdana as your font for a www page)

Side note: I added a border to your h1 element only to let you have an
indication of where it sits physically. You may want to use that "trick"
whenever you get into trouble to find the edges of your elements.

Replace; 'border: solid 1px #000000;' with 'border: none;' when you are
done with your "inspection".

--
Rex
Jul 21 '05 #4
"drdeadpan" <vk***********@yahoo.com> wrote:
Thanks for your help.


Who are you responding to? Quote a snippet (the bare minimum) of what
you are replying to and put your reply beneath it.

--
Spartanicus
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dustin | last post by:
Here's what I am trying to do: (Names represent CSS classes.) I want to create a photo gallery. I want the entire gallery to be surrounded by a box named PhotoGallery. I want a fluid placement...
0
by: drdeadpan | last post by:
Hi, Being a newbie, pardon me if this question has been answered. I was finding it difficult to search for my problem on Usenet 'cos I was having a tough time describing it.. Here gow. I...
1
by: gforce | last post by:
i'm doin the html/css for a web project and i'm having some trouble now that the back end programmers are adding dynamic data... at least that's what i'm being told. there seem to be two major...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
12
by: Brad | last post by:
Does anyone have any other solutions to the Firefox rendering problems with ASP.NET? I've tried the <browsercaps> web.config trick. It didn't work. Am I overlooking something else? Thanks!
2
by: Ben Wall | last post by:
I have a page with six or seven absolutely positioned DIV blocks ... they all contain form elements .. text boxes, buttons, etc. and they all reside within a containing "master" DIV. What I need to...
4
by: jwwest | last post by:
Hello all, I've been building a simple site based on XML, XSL and CSS in order to help me learn those technologies better. However, building a tableless page is brand new to me so I've run into...
3
by: Steve | last post by:
Hi; I'm working on a demo of using a timer on a web site that is made visible by making a div visible. My "PopIn Box" div is empty on the page. Before making it visible I used javascript to...
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.