Reply
css "bar" on every image in div?
Old 04-25-2008, 10:26 PM css "bar" on every image in div?
Junior Talker

Posts: 2
I want to have a "bar" at the bottom of all images in a div that has links in it..like email image, print image, digg image etc.
ive thought about doing this with a span but then i'll have to put every image in a span class. Can anybody point me in the right direction?
im pretty new to coding so this might be pretty simple to do..i just dont know
thanks in advance to all
nate is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-25-2008, 11:30 PM Re: css "bar" on every image in div?
joder's Avatar
Flipotron

Posts: 6,361
Name: James
Location: In the ocean.
I think you might be looking for something like this:

Code:
#bar img {
    border-bottom: 2px solid #000000;
}

Code:
<div id="bar">
<img ...>
</div>
joder is offline
Reply With Quote
View Public Profile
 
Old 04-26-2008, 05:55 AM Re: css "bar" on every image in div?
chrishirst's Avatar
Super Moderator

Posts: 11,897
Location: Blackpool. UK
Or
Code:
a img {
    border-bottom: 2px solid #000000;
}
Which would only affect <img> elements inside <a>nchor elements
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to css "bar" on every image in div?
 

Thread Tools

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