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
Old 01-13-2009, 04:23 PM Position: relative
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
For some reason my position: relative isn't working.

HTML Code:
 <div id="akd">
  <a href="http://www.alikat-designs.com"><img src="images/akd.png" alt="Brought to you by AliKat Designs"/></a>
 </div>
 <div id="menu">
   <div><a id="h" class="normal" href="">Home</a></div>
   <div><a id="ab" class="hover" href="">About</a></div>
   <div><a id="ar" class="normal" href="">Archives</a></div>
   <div><a id="l" class="normal" href="">Resources</a></div>
   <div><a id="c" class="normal" href="">Contact</a></div>
   <div><a id="f" class="normal" href="">Forums</a></div>
  <br class="clear"/>
 </div>
Code:
#menu { width: 961px; }
#menu div { display: inline; float: left; }
#menu a { display: block; width: 140px; padding: 5px 0px; margin: 0 10px; position: relative; }

#menu a { color: #ffffff; text-align: center; font-size: 1.2em; font-weight: bold; text-decoration: none; position: relative; top: 0; }
a#h { background: url("images/red_tab.png") no-repeat; }
a#ab { background: url("images/purple_tab.png") no-repeat; }
a#ar { background: url("images/green_tab.png") no-repeat; }
a#l { background: url("images/yellow_tab.png") no-repeat; color: #000000; }
a#c { background: url("images/cyan_tab.png") no-repeat; color: #000000; }
a#f { background: url("images/blue_tab.png") no-repeat; }

.normal { position: relative; top: 0; height: 20px; left: 0; }
.hover { position: relative; top: -80px; height: 40px; }
It should be moving the About link above the others by 20px but it's still inline with the others.

Attached are the complete files

Is it because it's floating? That shouldn't matter with the right positioning on the element though. Any help would be greatly appreciated.
Attached Files
File Type: txt template.txt (6.6 KB, 1 views)
File Type: txt theme.txt (3.4 KB, 1 views)
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
 
Register now for full access!
Old 01-13-2009, 04:50 PM Re: Position: relative
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You have a specificity problem, try this instead:

Quote:
#menu a.normal { position: relative; top: 0px; height: 20px; left: 0; }
#menu a.hover { position: relative; top: -80px; height: 40px;}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-13-2009, 05:30 PM Re: Position: relative
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
thanks. Fixed that issue now on to making it all work. Appreciate your help.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 01-13-2009, 05:56 PM Re: Position: relative
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
the end result of your help:

http://aliciawilkerson.com/dev/dabbler/template2.html
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Old 01-14-2009, 03:16 AM Re: Position: relative
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
Impressive. You might want to consider making the "lined paper" match up with the page text to make it more readable.
__________________
Will Anderson

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Old 01-14-2009, 05:52 AM Re: Position: relative
AliKat's Avatar
Extreme Talker

Latest Blog Post:
Save the Children
Posts: 176
Location: MS
Trades: 0
Yeah there is something I have to do, it was suppose to be much lighter but the png transparency didn't quite work as the PSD did.

I will do something about it soon.
AliKat is offline
Reply With Quote
View Public Profile Visit AliKat's homepage!
 
Reply     « Reply to Position: relative
 

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.17532 seconds with 13 queries