Old 02-09-2005, 06:11   #1 (permalink)
thomaz
caught a lite sneeze
 
thomaz's Avatar
 
Join Date: Nov 2003
Location: Sweden
Posts: 62
CSS help

Hellü.

I have the following in my external style-sheet.
Code:
img { border: #000 1px solid; }

I wonder if there is any way to go around this for a few of the pictures in my blog. I mean, all the photos have a border, but I don't want the images in the menu to have any border.
  Reply With Quote
Old 02-09-2005, 06:24   #2 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,508
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
give the img in the menu a 'class' so as to separate them from other images on your pages
  Reply With Quote
Old 02-09-2005, 06:43   #3 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 6,998
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
or you could use descendant selectors.
if you have an id on the menu div/ul add this to your stylesheet

#whateverIdYouHave img {border:0px none;}
  Reply With Quote
Old 02-09-2005, 07:33   #4 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,508
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by emilpaun
or you could use descendant selectors.
if you have an id on the menu div/ul add this to your stylesheet

#whateverIdYouHave img {border:0px none;}
yes... that too
  Reply With Quote
Old 02-09-2005, 07:55   #5 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 6,998
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
  Reply With Quote
Old 02-09-2005, 10:50   #6 (permalink)
roto
Floating libation anyone?
 
roto's Avatar
 
Join Date: Apr 2003
Location: El Barco del Amor
Posts: 4,639
Send a message via AIM to roto Send a message via Yahoo to roto
css nerds
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Old 02-09-2005, 11:01   #7 (permalink)
aspiramedia
Unregistered user
 
aspiramedia's Avatar
 
Join Date: Aug 2005
Posts: 312
If you want all the images in your menu the same, use emilpaul's method. If you want them all different use finbarr's.
  Reply With Quote
Old 02-09-2005, 11:08   #8 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,508
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by aspiramedia
If you want all the images in your menu the same, use emilpaul's method. If you want them all different use finbarr's.
depends on what you think will be added to the site over time as well - make the decision based on what will cause you the least work
  Reply With Quote
Old 02-09-2005, 12:18   #9 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Perhaps you should be using an image replacement technique in the menu to keep the images in the CSS. Just a thought.

For now, applying classes or utilizing descendant selectors as emil suggests would work best.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8