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
Either my css or my div is not working for whatever reason...
Old 12-24-2007, 01:23 AM Either my css or my div is not working for whatever reason...
Skilled Talker

Posts: 72
Name: Ivan Cash
Trades: 0
In reference to this site: http://www.ivancash.com/writing/pers...repreneur.html...

The orange button that reads "These shirts are now for sale!" should follow this css code:

Quote:
#sticker {
position:absolute;
border:0px;
float:right;
margin-right:50px;
text-align:right;}

#sticker a:link, #sticker a:visited, #sticker a:active, #sticker a:hover {
text-decoration: none;
}

Here it is in the html page:

Quote:
<div id="sticker">
<a href="http://www.hatethecoach.com/"><img src="../../images/sticker.gif" alt="sticker" border="0"></a>
</div>
Any ideas as to why it's not responding to my css?


Thanks,

Ivan
shwizle is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-24-2007, 11:26 AM Re: Either my css or my div is not working for whatever reason...
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can't use a float on an absolutely positioned element. Absolute MEANS absolute, and float.. well.. floats within the document flow. Absolute means it is OUT of the document flow, and goes only where you tell it to go, using top, right, left and right values.

Set your #wrapper to position: relative first, that way the absolutes will be positioned relative to the #wrapper. I don't see that you need the absolute, the float seems to be working, but whatever you decide you one or the other but you can't use both.
__________________
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 12-24-2007, 02:23 PM Re: Either my css or my div is not working for whatever reason...
Skilled Talker

Posts: 72
Name: Ivan Cash
Trades: 0
What about my "no border" and "no text decoration" commands.
I don't think the sticker div is working at all, and I'm trying to figure out why.
shwizle is offline
Reply With Quote
View Public Profile
 
Old 12-24-2007, 02:31 PM Re: Either my css or my div is not working for whatever reason...
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You put a background color on the #wrapper a. text-decoration: none does not effect that.

Add a background with the background color of the page to #sticker.
joder is offline
Reply With Quote
View Public Profile
 
Old 12-25-2007, 12:26 PM Re: Either my css or my div is not working for whatever reason...
Skilled Talker

Posts: 72
Name: Ivan Cash
Trades: 0
Hey,

So the CSS is definitely working, but I still can't get the yellow highlight to go away.
I just tried your suggestion Joder, and adding white bg didn't do anything..

HTML:
Quote:
<div id="sticker">
<a href="http://www.hatethecoach.com/"><img src="../../images/sticker.gif" alt="sticker" border="0"></a>
</div>
CSS:
Quote:
#sticker {
position:absolute;
border:0px;
left:540px;
margin-top:10px;
text-align:right;
text-decoration:none;
background-color:#FFFFFF;
}

#sticker a:link, #sticker a:visited, #sticker a:active, #sticker a:hover {
text-decoration: none;
}
shwizle is offline
Reply With Quote
View Public Profile
 
Old 12-25-2007, 03:56 PM Re: Either my css or my div is not working for whatever reason...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
but I still can't get the yellow highlight to go away.
Change the background colour in this bit of CSS code.

Code:
.highlight{
color:#000000;
background-color:#FFFF00;
}
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-25-2007, 10:46 PM Re: Either my css or my div is not working for whatever reason...
Skilled Talker

Posts: 72
Name: Ivan Cash
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Change the background colour in this bit of CSS code.

Code:
.highlight{
color:#000000;
background-color:#FFFF00;
}
Sorry for not being more specific. ....I'm looking for the highlight behind the badge image that comes up when you scroll over it to go away.
http://www.ivancash.com/writing/pers...repreneur.html
shwizle is offline
Reply With Quote
View Public Profile
 
Old 12-26-2007, 04:37 AM Re: Either my css or my div is not working for whatever reason...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
give the anchor that is wrapped around the logo a different class/id with the hover background set to transparent
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-26-2007, 11:33 PM Re: Either my css or my div is not working for whatever reason...
Skilled Talker

Posts: 72
Name: Ivan Cash
Trades: 0
Quote:
Originally Posted by chrishirst View Post
give the anchor that is wrapped around the logo a different class/id with the hover background set to transparent
I'm not sure what you mean exactly, but didn't I do that?

Quote:
#sticker {
position:absolute;
border:0px;
left:540px;
margin-top:10px;
text-align:right;
text-decoration:none;
background-color:#FFFFFF
}

#sticker a:link, #sticker a:visited, #sticker a:active, #sticker a:hover {
text-decoration: none;
background-color:ffffff;
}
Can you be more specific in your suggestion please?
Thanks!
shwizle is offline
Reply With Quote
View Public Profile
 
Old 12-27-2007, 08:39 AM Re: Either my css or my div is not working for whatever reason...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I'm not sure what you mean exactly, but didn't I do that?
Nope, it's just a plain anchor so it will follow whatever style is set for anchors.

HTML Code:
<div id="left">
<a href="http://www.ivancash.com/"><img src="http://www.ivancash.com/images/logo.gif" alt="ivan_cash_logo" border="0"></a>
 </div>
Add
Code:
#left a:hover {
     background-color:transparent;
}
To your style sheet
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-27-2007, 05:06 PM Re: Either my css or my div is not working for whatever reason...
Skilled Talker

Posts: 72
Name: Ivan Cash
Trades: 0
great, thanks!
shwizle is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Either my css or my div is not working for whatever reason...
 

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 1.78015 seconds with 12 queries