Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
div content placement
Old 12-24-2008, 02:30 AM div content placement
Experienced Talker

Posts: 34
Trades: 0
how can I get the menu in the top div to "follow" the movement of the main content which is inside the main wrapper?


Essentially so that the menu is always square with the left edge of the "K" in the logo


http://s205480013.onlinehome.us/KM_Test/NEW_R2.html

Last edited by BobMane; 12-24-2008 at 02:43 AM..
BobMane is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-24-2008, 09:59 AM Re: div content placement
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Not sure exactly what you mean, but you probably need to float it.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-24-2008, 02:31 PM Re: div content placement
Defies a Status

Posts: 1,605
Trades: 0
Quote:
so that the menu is always square with the left edge of the "K" in the logo
What menu?

Use divs: container, header, main, nav and footer then set the margins and or padding to achieve the desired look.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 12-24-2008, 03:10 PM Re: div content placement
Banned

Posts: 421
Location: Boston, MA
Trades: 1
It seem to work fine to me. Guess we all are missing what you meant
webcosmo is offline
Reply With Quote
View Public Profile Visit webcosmo's homepage!
 
Old 12-24-2008, 07:58 PM Re: div content placement
Experienced Talker

Posts: 34
Trades: 0
right


this solved it:

#nav1 {
height: 15px;
width: 850px; <-- change
position: relative; <-- remove
left: 96px; <-- remove
top: 8px; <-- remove
padding-bottom: 10px;
padding-top: 2px;
text-align: center;
margin: 7px auto 0 auto; <-- add
}


now the problem is, what if I want to add another set of links or a graphic on the top right?
BobMane is offline
Reply With Quote
View Public Profile
 
Old 12-24-2008, 11:22 PM Re: div content placement
Defies a Status

Posts: 1,605
Trades: 0
You just create another div class in the CSS. I use a 3 column stylesheet for the main content section on most of my sites. I don't always use the third column but it is defined if I want to use it.

I normally do not use the top or bottom banner sections either but I have them defined. Stylesheet looks like this for defining divs.
container
header
topbanner
left panel
maincontent
right panel
bottom banner
footer

For sites where I am not using the thrird column I just adjust the width for the maincontent section. Take a look if you want at zeroscripts*com.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 12-25-2008, 03:28 AM Re: div content placement
Experienced Talker

Posts: 34
Trades: 0
what if I want to add another set of links on the top right (next to the existing menu)?
BobMane is offline
Reply With Quote
View Public Profile
 
Old 12-25-2008, 08:49 AM Re: div content placement
Defies a Status

Posts: 1,605
Trades: 0
Quote:
Originally Posted by BobMane View Post
what if I want to add another set of links on the top right (next to the existing menu)?

I thought I answered that for you two posts up. )
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to div content placement
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27244 seconds with 12 queries