| Welcome to Webforumz.com. |
|
Apr 19th, 2008, 10:47
|
#1 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Anchoring layers in Firefox
Hi All,
I'm a bit of a novice with websites and would be very grateful for some help please. I've designed my index page in Dreamweaver using layers to put the graphics and text in. The layers all line up in ie and the top banner anchors to the top and edge of the page, however they all go out of line in Firefox.
Is there a way I can anchor them?
Thanks for any help you can give,
Mark.
|
|
|
Apr 19th, 2008, 11:35
|
#2 (permalink)
|
|
Highly Reputable Member
Join Date: Oct 2007
Location: Stockport
Age: 16
Posts: 738
|
Re: Anchoring layers in Firefox
Could you provide a link to your page please mate
|
|
|
Apr 19th, 2008, 13:11
|
#3 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Re: Anchoring layers in Firefox
|
|
|
Apr 19th, 2008, 13:14
|
#4 (permalink)
|
|
Highly Reputable Member
Join Date: Oct 2007
Location: Stockport
Age: 16
Posts: 738
|
Re: Anchoring layers in Firefox
You are using tables for layout, have you looked into using CSS for the layout?
|
|
|
Apr 19th, 2008, 15:56
|
#5 (permalink)
|
Join Date: Jun 2007
Location: uk
Posts: 459
|
Re: Anchoring layers in Firefox
Sorry I must be blind I dont see a difference in ff.
Pat
|
|
|
Apr 19th, 2008, 15:57
|
#6 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Re: Anchoring layers in Firefox
No, never heard of them, just Googled it and it says cascading style sheets. Is that something seperate to Dreamweaver?
As you'll see, the website design is very basic!
|
|
|
Apr 19th, 2008, 16:01
|
#7 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Re: Anchoring layers in Firefox
Hi Pat,
in ie, the top banner and central picture are justified to the top and left edge. In Firefox the top banner is offset and from the top and side edge, as is the central picture. I think the layers move in Firefox, but I don't know for sure.
|
|
|
Apr 19th, 2008, 16:18
|
#8 (permalink)
|
Join Date: Jun 2007
Location: uk
Posts: 459
|
Re: Anchoring layers in Firefox
try this it should sort out firefox but the effects on ie could be drastic.
Find this piece of code.
- HTML: Select all
<div id="Layer2" style="position:absolute; left:3px; top:125px; width:786px; height:3524px; z-index:18; visibility: visible">
And change top:125px; to top:101px;
Then find
- HTML: Select all
<div id="Layer4" style="position:absolute; left:0px; top:0px; width:791px; height:132px; z-index:19; visibility: visible">
And change top:0px; to top:-20px;
Give it a try.
Pat
|
|
|
Apr 19th, 2008, 16:57
|
#9 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Re: Anchoring layers in Firefox
Thanks very much. I'll give it a try  .
|
|
|
Apr 19th, 2008, 18:02
|
#10 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Re: Anchoring layers in Firefox
Yes, it mucks it up in ie  . Hmm . . . what to do.
|
|
|
Apr 19th, 2008, 18:10
|
#11 (permalink)
|
Join Date: Jun 2007
Location: uk
Posts: 459
|
Re: Anchoring layers in Firefox
thought it might.
You could use conditional comments for ie. See this link.
http://creativecoding.webforumz.com/...8/january/faq/
Take a look, basically it allows you to specify a style that only ie will use and ff will ignore.
Any problems just post back.
Pat
|
|
|
Apr 19th, 2008, 19:00
|
#12 (permalink)
|
|
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
|
Re: Anchoring layers in Firefox
Thanks, I'll take a look.
|
|
|
Apr 20th, 2008, 21:41
|
#13 (permalink)
|
|
Up'n'Coming Member
Join Date: Apr 2008
Location: Or-Yehuda, Israel
Age: 60
Posts: 88
|
Re: Anchoring layers in Firefox
Try
- Code: Select all
<body style="margin: 0pt;" marginheight="0" marginwidth="0">
as a substitute to your leftmargin and topmargin in your bodytag
|
|
|
Apr 21st, 2008, 08:48
|
#14 (permalink)
|
|
Chief Moderator
Join Date: Oct 2007
Location: UK
Posts: 715
|
Re: Anchoring layers in Firefox
shalom_m, there's no need for marginheight and marginwidth. Besides, they're depracated attributes. Just use; - Code: Select all
<body style="margin:0">
Better yet, use an external stylesheet with; - Code: Select all
body {
margin: 0
}
__________________
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Layers
|
WEB |
New to Web Design |
7 |
May 29th, 2007 23:26 |
|
Layers
|
GCrame5832 |
CSS Forum |
6 |
Dec 31st, 2005 21:42 |
|
Using layers in CSS
|
jwalker80 |
CSS Forum |
3 |
Dec 21st, 2005 14:08 |
|
layers
|
forry |
HTML Forum |
7 |
Sep 21st, 2005 08:42 |
|
Need help with layers
|
davidsnave |
CSS Forum |
0 |
Aug 29th, 2005 23:26 |
|
|
|