CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 22nd, 2003, 02:10 AM
flashmani flashmani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 24 flashmani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 53 m 48 sec
Reputation Power: 0
css rollover

Hai all,

I want create a simple button with css..

first there is link text (Like "Home")

if i rollover the link its should shows the bullet in the right side which is in separate table(gif image).

if i click the link that bullet image is still active where link page is there...

is it possible in css or any othere method...

i dont want javascript....

Please....

Reply With Quote
  #2  
Old September 22nd, 2003, 02:24 AM
IBM IBM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 173 IBM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
go to www.justalinkapart.com
Or something like that, the url may be wrong as in missing a dash, but the domain name itself is right. So do a search for just a link apart.
They have a tutorial on list menus, they show you how to make list menus and with that same code you can modify it to what you want.

As well, you could so something similar to this:

a.mymenu:link{your style}
a.mymenu:visited{your style, plus a few changes}
a.mymenu:hover{your setyles, plus background image}

I think it's like that, I don't use CSS often enough to remember everything.. But yeah, check out a list apart. Hope this helps.
__________________
We all have souls.... where do you want your to go?

The little princess
Back from the dead
The only Hope / End Times

Reply With Quote
  #3  
Old September 22nd, 2003, 04:15 AM
flashmani flashmani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 24 flashmani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 53 m 48 sec
Reputation Power: 0
Thanks....

But there is no link for justalinkapart.com.

i think its dead...

anyway thanks....

do u know any other site which covers this topic

Reply With Quote
  #4  
Old September 22nd, 2003, 04:30 AM
Corey Bryant Corey Bryant is offline
Texan at Heart
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Castle Rock, CO
Posts: 312 Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 13 h 45 m 40 sec
Reputation Power: 14
Do you mean something like this:

<style type="text/css">

a.button:link
{
font-size:14px;
font-weight:bold;
text-decoration:none;
border-styleutset;
border-color:red;
border-width:5px;
background-color:#FFFFCE;
width:125px;
color:navy;
}


a.button:visited
{
font-size:14px;
font-weight:bold;
text-decoration:none;
border-styleutset;
border-color:red;
border-width:5px;
background-color:#FFFFCE;
width:125px;
color:navy;
}

a.button:active
{
font-size:14px;
font-weight:bold;
text-decoration:none;
border-style:inset;
border-color:red;
border-width:5px;
background-color:#FFFFCE;
width:125px;
color:maroon;
}

a.button:hover
{
font-size:14px;
font-weight:bold;
text-decoration:none;
border-style:inset;
border-color:red;
border-width:5px;
background-color:#FFFFCE;
width:125px;
color:maroon;
}

</style>

And then in the body:
<a href="http://www.cnn.com/" class="button">CNN</a>

Change the widths, colors, border accordingly.

Reply With Quote
  #5  
Old September 22nd, 2003, 04:40 AM
flashmani flashmani is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 24 flashmani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 53 m 48 sec
Reputation Power: 0
Thanks corey...

this is work fine.. but i want the hover effect....

when the hover takes place a gif image in the right of the text will show..( its a bullet) actully its is separate TD.....

any idea...

Reply With Quote
  #6  
Old September 22nd, 2003, 04:51 AM
Corey Bryant Corey Bryant is offline
Texan at Heart
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Castle Rock, CO
Posts: 312 Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level)Corey Bryant User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 13 h 45 m 40 sec
Reputation Power: 14
The link that IBM recommended: http://www.alistapart.com/stories/ - as far as changing an image with only CSS - I do not think it can be done. CSS is design. You would need to implement ajavascript also.

Reply With Quote
  #7  
Old September 22nd, 2003, 09:41 PM
IBM IBM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 173 IBM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
actually, yes you can make roll over images using purely CSS...
alistapart actually shows you this to some extent.

for my example or ven coreys all you do is add a background image style to link, visited,click and on hover change that image.

I'm not going to give exact code, this has already been pretty much done in corey's example. So I leave it to you to find out how to add the backround styles..

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css rollover


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 4 hosted by Hostway