Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 04-10-2011, 09:53 AM   #1
Silver Member
 
Join Date: Oct 2010
Location: Bunbury, Western Australia
Posts: 114
Default Borders around images

I want a fine border around the six big images on this page but I don't want that same line around the head photo in the top left corner. Could someone please tell me what I need to do? The reference is:
http://d7806.mysite.westnethosting.com.au/index.php

Thank you in advance.
jeanm is offline   Reply With Quote


Old 04-10-2011, 11:09 AM   #2
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,133
Default

Code:
img {
border:1px solid #231f20; /*or any colour you choose */
}

.headimage {
border:0;
}
HTML Code:
<!-- image in header -->
<img class="headimage" src="headimage.jpg" alt="blah blah" />
Phreaddee is offline   Reply With Quote
Old 04-10-2011, 11:42 AM   #3
Platinum Member
 
Join Date: Sep 2010
Posts: 509
Default

of instead simply target all the images in the main content

.content img {border:1px solid #000;}
d a v e is offline   Reply With Quote
Old 04-10-2011, 01:18 PM   #4
Silver Member
 
Join Date: Oct 2010
Location: Bunbury, Western Australia
Posts: 114
Default

Thank you both very much. Problem is now fixed. Much appreciated.

Jean
jeanm is offline   Reply With Quote
Old 04-10-2011, 01:30 PM   #5
Platinum Member
 
Join Date: Sep 2010
Posts: 509
Default

btw is this a new site because most/all the links are broken?

and it would be really nice to have some bigger images available form those smaller ones using something like http://www.huddletogether.com/projects/lightbox2/ for example. you have some really nice stuff there!
d a v e is offline   Reply With Quote


Old 04-13-2011, 09:29 PM   #6
New Member
 
Sault Web Desig's Avatar
 
Join Date: Apr 2011
Location: Sault Ste Marie, Ontario Canada
Posts: 5
Default

I would use phreadee's suggestion as the more you can avoid inline styling the better
Sault Web Desig is offline   Reply With Quote
Old 04-14-2011, 04:02 AM   #7
Platinum Member
 
Join Date: Sep 2010
Posts: 509
Default

Quote:
Originally Posted by Sault Web Desig View Post
I would use phreadee's suggestion as the more you can avoid inline styling the better
and what was wrong with my solution? no inline css there
d a v e is offline   Reply With Quote
Old 04-14-2011, 07:11 AM   #8
Diamond Member
 
Phreaddee's Avatar
 
Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,133
Default

hehe.

in fact I prefer daves method.
Phreaddee is offline   Reply With Quote
Old 04-18-2011, 07:57 PM   #9
Bronze Member
 
helloworld's Avatar
 
Join Date: Mar 2011
Location: Portland, OR
Posts: 98
Default

i always reset this in my first few lines of css with the below.. and I get rid of outlines too.
a img { border:0;}
and then if theres a specific need for a border ill target that class' children.
helloworld is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:29 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.