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)
-   -   quick css question about dashed borders on divs (https://gfy.com/showthread.php?t=799164)

Angry Jew Cat - Banned for Life 01-12-2008 04:38 PM

quick css question about dashed borders on divs
 
say i have something like this on a grey background.

#div {
width:500px;
background: white;
text-align: center;
border: 1px black dashed;
}

the dashed border goes around the outside of the white div with grey in between the dashes. is there a way i can have the blacked dashed line over the white background so it is a white and black dashed border as opposed to a black and grey dashed border? know what i'm sayin?

Swish 01-12-2008 04:48 PM

try adding a 1px margin to all sides of the div

Angry Jew Cat - Banned for Life 01-12-2008 05:03 PM

doesn't seem to do it. i'd rather not have to set it inside another div just to get the look i'm wanting here.

Deej 01-12-2008 05:06 PM

hrmm, should be able to use negatives... or... use a 1 pixel gif as your background and make the negative margins :)

tada

Deej 01-12-2008 05:07 PM

Quote:

Originally Posted by Deej (Post 13643483)
hrmm, should be able to use negatives... or... use a 1 pixel gif as your background and make the negative margins :)

tada

this actually might not work since youre dealing with your border...

but hey... its a lead

Deej 01-12-2008 05:08 PM

div in div... has to be

theres nothing at all wrong with double divisions...

Angry Jew Cat - Banned for Life 01-12-2008 05:20 PM

Quote:

Originally Posted by Deej (Post 13643495)
div in div... has to be

theres nothing at all wrong with double divisions...

nah, thats what i went ahead and did in the end. was just hoping there'd be a simpler way.

wdforty 01-12-2008 05:22 PM

yeah nested divs is the way to go

Basic_man 01-12-2008 08:14 PM

Quote:

Originally Posted by Deej (Post 13643495)
div in div... has to be

theres nothing at all wrong with double divisions...

That was my solution!

A white DIV higher than your original DIV :thumbsup


All times are GMT -7. The time now is 10:10 PM.

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