GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how do i do this? css question (https://gfy.com/showthread.php?t=980590)

Mutt 08-01-2010 08:25 AM

how do i do this? css question
 
a img {
border:none;}


that's in the style sheet but there's ONE clickable image I want to have a border - nothing i've tried works.

thanks

Amputate Your Head 08-01-2010 08:28 AM

Quote:

Originally Posted by Mutt (Post 17379417)
a img {
border:none;}


that's in the style sheet but there's ONE clickable image I want to have a border - nothing i've tried works.

thanks

If it's just one pic, why not simply throw a graphical border on that one? :2 cents:
Quote:

a img {
border:none;}
...will effectively cancel out all image css borders. (as you know).

xerex 08-01-2010 08:29 AM

try this:

img.border {border:1px solid #000;}

<a href="#"><img src="image.jpg" class="border" /></a>

Mutt 08-01-2010 08:30 AM

Quote:

Originally Posted by Amputate Your Head (Post 17379421)
If it's just one pic, why not simply throw a graphical border on that one? :2 cents:

...will effectively cancel out all image css borders. (as you know).

i thought of that but there's over a hundred photos i've already watermarked - i know it's only 10 minutes work to do them all over with a graphical border but i wanted to see if somebody has a CSS solution first before redoing the photos.

fris 08-01-2010 08:34 AM

set a class for the ones you want with a border

Amputate Your Head 08-01-2010 08:36 AM

Quote:

Originally Posted by Mutt (Post 17379426)
i thought of that but there's over a hundred photos i've already watermarked - i know it's only 10 minutes work to do them all over with a graphical border but i wanted to see if somebody has a CSS solution first before redoing the photos.

ahhhh, i thought you only needed one pic with a border. my bad.

Vendzilla 08-01-2010 08:36 AM

Quote:

Originally Posted by fris (Post 17379434)
set a class for the ones you want with a border

thats the way I would go

Mutt 08-01-2010 09:59 AM

Quote:

Originally Posted by fris (Post 17379434)
set a class for the ones you want with a border

i did and it didn't work

i went

a pic{
border: 3px;
color: #FFF;
}

then class="pic" on the image

didn't work, did i do it wrong?


i fixed it by taking out the a img {border: none} - and put border: none on the id's that needed them and that let me add my border style to the image i wanted to have the border on.

Mutt 08-01-2010 10:00 AM

Quote:

Originally Posted by Mutt (Post 17379590)
i did and it didn't work

i went

a pic{
border: 3px;
color: #FFF;
}

then class="pic" on the image

didn't work, did i do it wrong?


i fixed it by taking out the a img {border: none} - and put border: none on the id's that needed them and that let me add my border style to the image i wanted to have the border on.

oh, i should have done

a .pic

Why 08-01-2010 11:49 AM

img.pic
a .pic
a img.pic
a.pic img

should all work. depending on where you set your class. i would set the class in the image, and use the first line.

firequartz 08-01-2010 12:04 PM

You may want to make the style name more self-explanatory .. such as

.picnoborder

to differentiate from the ones that do.


All times are GMT -7. The time now is 03:23 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123