Forum Moderators: open

Message Too Old, No Replies

frames and css

frames overlap in firefox

         

loopieloo

12:57 am on Oct 10, 2008 (gmt 0)

10+ Year Member



My website displays ok in every browser except firefox the top overlaps the bottom frame I use an index that refers to the body and title page I am at a loss anyone able to help?

tedster

3:30 am on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello loopieloo, and welcoome to the forums.

Are you actually using frames that overlap? Or is it divs?

At any rate, the first step in resolving any cross-browser display problem is to be sure that your mark-up is valid. Trying to fix problems when the code is not valid can be frustrating and in some cases, actually impossible.

W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]

If you have validated your code and the problem remains, we'll need to see the important parts of your code. For help in posting your code, please see the thread called LINKS and posting CODE [webmasterworld.com]. That thread is pinned to the top of the HTML forum's index page for easy reference.

loopieloo

4:45 am on Oct 10, 2008 (gmt 0)

10+ Year Member



I validated the css do I have to validate the html too?

loopieloo

4:46 am on Oct 10, 2008 (gmt 0)

10+ Year Member



I am new to the css stuff and not so sure of which things I need to do. I tried the html validator and was a mess but the css was ok

loopieloo

5:18 am on Oct 10, 2008 (gmt 0)

10+ Year Member



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<META NAME="PUBLISHER" CONTENT="publisher name">

<title>index.html<img src="images/logotse1.gif" width="800" height="70" alt=""</title>
<META NAME="ROBOTS" CONTENT="NOFOLLOW">
</HEAD>

[edited by: tedster at 5:57 am (utc) on Oct. 10, 2008]
[edit reason] disable graphic smile faces [/edit]

tedster

5:59 am on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, you should definitely validate the HTML. The first report might look awful, but early errors tend to cause a cascade. So fix the first one, then re-validate. The total number of errors will diminsh quite rapidly, and we're here to help with any individual errors you can't figure out on your own.

loopieloo

6:10 am on Oct 10, 2008 (gmt 0)

10+ Year Member



I will try but I am not that well taught on technical names but oh well the learning process begins

loopieloo

8:07 am on Oct 10, 2008 (gmt 0)

10+ Year Member



OK almost bald have an error now says 4 errors 1 warning

Line 1, Column 121: cannot continue because of previous errors.
…/xhtml1/dtd/xhtml1-transitional.dtd" /> lost now had 180 errors almost all cap errors and the />

tedster

6:05 pm on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds like you've got an error in Line 1 - your DTD. See [w3.org...]

loopieloo

5:35 pm on Oct 11, 2008 (gmt 0)

10+ Year Member



When I validate the pages I had over 100 errors on my pages index titlle and body so I validated them in xhtml when before they were plain old html and recieved a big congrats and on css a smiley too ..but when I look at my pages now they look real bad ?So now what is my next step?

tedster

6:01 pm on Oct 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Now you need to discover exactly what your source code is doing that is treated differently by different browsers. My first guess is that you are depending on some of IE's non-standard ways of handling the W3C Box Model [w3.org].

Another guess is that you are depending on the default margins and padding that the browsers each set. I usually start my CSS rules by setting all padding and margins to zero as the first rule.

html * {padding:0;margin:0;}

Then I can declare each element, class or id to have exactly the padding and margin that I choose, confident that various browsers will not throw their default choices into the mix and shift things around.

I also develop pages in the most standards compliant browsers I have (Firefox, Opera) and then tweak for IE as needed - since IE tends to have more non-standard handling.

And by the way - you still haven't answered whether your problem is truly with the <frame> element, or whether you used the word frame in a non-technical way.

loopieloo

9:33 pm on Oct 11, 2008 (gmt 0)

10+ Year Member



As you probably know I am an older person used to the basic html structures and I have used the old standards .
I am using the index page as a frames assembly which refers to the title and body page. The body is compiled in image ready and the title is again just html.So the only code for the frame I used was :
</head>
<frameset rows="25%,*">
<frame src="title.html">
</frameset>
</html>
So I am going to have to check out the box frame topic here and see what happens next.The only reason I am making an attempt at this is because I want to learn something new. If I am too much of a pain let me know .thanks linda

tedster

9:52 pm on Oct 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for clarifying that you are actually using a frameset. Now your situation gets interesting. I wouldn't know how to overlap frames if I tried - I think you may be seeing an illusion, based on how you sliced your images in Image Ready.

Since a frameset is a way of combining several urls into one window, the problem may lie in your frameset itself, or in the individual frames that you are including. Can you give us just the source code for your main frameset page - changing any specifics that would identify your site?

loopieloo

10:11 pm on Oct 11, 2008 (gmt 0)

10+ Year Member



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<head>
<title>index</title>
<meta name="author" content="co name">
<meta name="publisher" content="site name">
<meta name="language" content="english">
<meta name="copyright" content="(c) copyright owner">
<meta name="revisit-after" content="15 days">
<meta name="description" content="words of description">
<meta name="classifacation" content="words for classifacation">
<meta name="Keywords" content="">
<meta name="robots" content="nofollow">
</head>

<frameset rows="25%,*">
<frame src="title.html">
<frame src="body.html">
</frameset>

</html>

[edited by: tedster at 10:48 pm (utc) on Oct. 11, 2008]
[edit reason] remove specifics [/edit]

loopieloo

10:14 pm on Oct 11, 2008 (gmt 0)

10+ Year Member



I only wanted to make a 2 page frame top with the index page displaying bottom with the body page displaying and I managed to mess it up in the html code. I started doing pages when yahoo had only 50 users on it now its been a while and I feel like rumplestiltskin waking up

tedster

10:53 pm on Oct 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, you didn't mess up anything in that frameset code - the problems must be coming from title.html or body.html - or as I said, you may have sliced the images wrong.

One other idea - you could try using pixels instead of percentages for the top frame. That will stop the toop frame display at exactly the same place on every browser and every size window. something like this:

<frameset rows="120,*">

I just took a guess at the "120" - but use however many pixels you need for your title frame's height.

loopieloo

11:47 pm on Oct 11, 2008 (gmt 0)

10+ Year Member



Thank you will try that one It may fix the entire problem in firefox.I have only used image ready this month and didn't know about picking the html type so I will try to redo the body and index again Can you tell me what doc type would be best to start out with if I get into designing another web page?

loopieloo

12:25 am on Oct 12, 2008 (gmt 0)

10+ Year Member



That worked

tedster

1:45 am on Oct 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you tell me what doc type would be best to start out with if I get into designing another web page?

A frameset document should use one of the frameset doctypes listed on the link to the W3C that I gave earlier in this thread - most likely it will be the HTML 4.1 frameset that you used for this page.

For the pages that are held within the frames, see FAQ: Choosing the best doctype for your site [webmasterworld.com].

I think the best place to start learning in this brave new world would be to choose html 4.01 strict. No reason to get used to using the transitional stuff, since the differences between transitional and strict are all deprecated, and on their slow way out. Also, as you'll see, unless you have need for xml functionality, XHTML is not recommended.

There's lots of free and accurate help available for learning web technologies at [w3schools.com...] One good feature are the "Try-It-Yourself" pages where you can quickly and easily experiment with each new bit that you learn.

[edited by: tedster at 3:06 am (utc) on Oct. 12, 2008]

loopieloo

2:54 am on Oct 12, 2008 (gmt 0)

10+ Year Member



yes I like w3c but I was confused with all the doc types and i was using css and frames thank you for your time and especially your patience ! linda

tedster

3:08 am on Oct 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Note that the link I gave is NOT for the W3C, but instead for a tutorial website called W3 Schools.

The W3C website is great for checking on the most authoritative information, but the W3 Schools is intentionally built as a place to learn, from the ground up.

loopieloo

3:45 am on Oct 12, 2008 (gmt 0)

10+ Year Member



thanks for all the info
linda