Anchoring layers in Firefox

This is a discussion on "Anchoring layers in Firefox" within the Starting Out section. This forum, and the thread "Anchoring layers in Firefox are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 19th, 2008, 10:47
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Apr 19th, 2008, 11:35
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 849
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Anchoring layers in Firefox

Could you provide a link to your page please mate
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #3 (permalink)  
Old Apr 19th, 2008, 13:11
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anchoring layers in Firefox

Yes, it's:http://www.lotusespritturbo.com
Reply With Quote
  #4 (permalink)  
Old Apr 19th, 2008, 13:14
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 849
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: Anchoring layers in Firefox

You are using tables for layout, have you looked into using CSS for the layout?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #5 (permalink)  
Old Apr 19th, 2008, 15:56
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anchoring layers in Firefox

Sorry I must be blind I dont see a difference in ff.

Pat
Reply With Quote
  #6 (permalink)  
Old Apr 19th, 2008, 15:57
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #7 (permalink)  
Old Apr 19th, 2008, 16:01
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8 (permalink)  
Old Apr 19th, 2008, 16:18
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #9 (permalink)  
Old Apr 19th, 2008, 16:57
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anchoring layers in Firefox

Thanks very much. I'll give it a try .
Reply With Quote
  #10 (permalink)  
Old Apr 19th, 2008, 18:02
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anchoring layers in Firefox

Yes, it mucks it up in ie . Hmm . . . what to do.
Reply With Quote
  #11 (permalink)  
Old Apr 19th, 2008, 18:10
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #12 (permalink)  
Old Apr 19th, 2008, 19:00
Junior Member
Join Date: Apr 2005
Location: Oxfordshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anchoring layers in Firefox

Thanks, I'll take a look.
Reply With Quote
  #13 (permalink)  
Old Apr 20th, 2008, 21:41
Up'n'Coming Member
Join Date: Apr 2008
Location: Or-Yehuda, Israel
Age: 60
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #14 (permalink)  
Old Apr 21st, 2008, 08:48
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,039
Blog Entries: 2
Thanks: 5
Thanked 26 Times in 23 Posts
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
}
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Layers WEB Starting Out 7 May 29th, 2007 23:26
Layers GCrame5832 Web Page Design 6 Dec 31st, 2005 21:42
Using layers in CSS jwalker80 Web Page Design 3 Dec 21st, 2005 14:08
layers forry Web Page Design 7 Sep 21st, 2005 08:42
Need help with layers davidsnave Web Page Design 0 Aug 29th, 2005 23:26


All times are GMT. The time now is 12:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43