Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 20th, 2004, 12:01 PM
Justin2k Justin2k is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 27 Justin2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Grouping / Linking Layers

Hi,
I'm trying to centralise a navigation bar. It's made up of 9 tab buttons which are each in a seperate layer and are kept in position by defining the left and top attributes. It seemed the easiest way to enable me to do mouse over actions on each of the buttons.

I have managed to centralise everything on the page except these tabs because they just overlap each other when centralised. (I took out the left attribute to enable all the elements of my page to be centralised.) But if l could group or link the tabs then l would not have this problem. Is there any way to do this, or should l have designed just one layer for all the tabs and put them in there beside each other? ( Since this template is complete it would be better to group them rather than start the navigation bar again) Thanks.

Reply With Quote
  #2  
Old July 20th, 2004, 02:47 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Consider positioning the button divs absolutely within a relatively positioned container div. Also look into the float and clear attributes for keeping your button divs from overlapping.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old July 21st, 2004, 04:53 AM
Justin2k Justin2k is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 27 Justin2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks. I've decided to redo the navigation bar though, putting all the tab images in one layer and postioning the 'mouse_over' layers behind. The code l then used to center the page was:

Code:
div#centered{
    width:600px;
    margin-left:auto;
    margin-right:auto;
}


and then adding

Code:
 <div id="centered"> </div>


around the code that was relevant to the part l wanted centering. (i.e the whole page).

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Grouping / Linking Layers


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT