|
2008-05-14, 10:10 AM | #1 |
Mean people suck, nice people swallow, are you mean or nice?
|
CSS Help
What can I put in a style sheet so any undefined text on a page will have a certain size, color, etc.
|
2008-05-14, 10:18 AM | #2 |
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
|
Body tag?
body { background: #000; font-family: arial; font-size: 18pt; color: #7F00FF } etc. etc. |
2008-05-14, 10:49 AM | #3 |
Mean people suck, nice people swallow, are you mean or nice?
|
That worked, thanks!
|
2008-05-30, 11:18 AM | #4 |
Mean people suck, nice people swallow, are you mean or nice?
|
Another CSS question. I used this on a style sheet to have a background image for a page:
body {background-image: url(bg.jpg');} How can I call for that image from another folder? I tried putting the full path to the image but it doesn't work: body {background-image: url('http://www.best-wet-pussy.com/sex-in-stockings/bg.jpg');} Instead of the full path can I use SSI? |
2008-05-30, 11:25 AM | #5 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Put this between your head tags to call an external styesheet.
<link href="../path-to-stylesheet.css" rel="stylesheet"> In the stylesheet url(../path-to-background.jpg); You don't have to use an external styesheet but it does make things easy. |
2008-05-30, 11:43 AM | #6 |
Mean people suck, nice people swallow, are you mean or nice?
|
This is one of those Homer Simpson moments. Doh! I've been doing that for a long time but I used a template and forgot to change the SSI call for the extermal style sheet Licker I need more coffee
|
2008-06-15, 02:45 AM | #7 |
Mean people suck, nice people swallow, are you mean or nice?
|
Well dammit! With CSS I'm calling for a background image and I want to also define any unspecified text on the page to be a certain color. I'm using this but it doesn't work:
body {background-image:url('bg.jpg'); font-color: #ffffff; font-family: Arial; font-size: 14px; font-style: normal;} WTF am I doing wrong? |
2008-06-16, 09:34 PM | #8 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
Change "font-color" to just "color".
__________________
~Warm and Fuzzy. |
2008-06-18, 09:00 AM | #9 |
Mean people suck, nice people swallow, are you mean or nice?
|
THANK YOU! That finally worked!
|
2008-06-18, 06:54 PM | #10 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
No worries. I'm real nit-picky.
__________________
~Warm and Fuzzy. |
2008-12-21, 12:40 PM | #11 |
Mean people suck, nice people swallow, are you mean or nice?
|
Another CSS question: Isn't there some way to have say a 4px white border around an image and then a 1px black border around the white border? I think I've seen this done somewhere but can't find it.
TIA |
2008-12-21, 01:48 PM | #12 |
Certified Nice Person
|
First, make sure you're using a good DOCTYPE or it won't work in IE.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
HTML Code:
.thumb { width:320px; height:240px; padding:4px; background-color:#ffffff; border-style:solid; border-color:#000000; border-width:1px; } HTML Code:
<img class="thumb" src="photo.jpg" alt="sexy photo" />
__________________
Click here to purchase a bridge I'm selling. |
2008-12-21, 03:11 PM | #13 | |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
Quote:
# CSS HTML Code:
.thumb img { width:320px; height:240px; padding:4px; background-color:#ffffff; border-style:solid; border-color:#000000; border-width:1px; } HTML Code:
<div class="thumb"> <img src="photo1.jpg" alt="sexy photo 1" /> <img src="photo2.jpg" alt="sexy photo 2" /> <img src="photo3.jpg" alt="sexy photo 3" /> </div>
__________________
~Warm and Fuzzy. |
|
2008-12-21, 05:55 PM | #14 | |
Certified Nice Person
|
Quote:
Licker, you can also replace the three separate border style lines with just this: border: 1px solid #000000; I knew you could do it that way, but I was too lazy to find my style sheets earlier.
__________________
Click here to purchase a bridge I'm selling. Last edited by Useless; 2008-12-21 at 05:59 PM.. |
|
2008-12-22, 07:16 AM | #15 |
Mean people suck, nice people swallow, are you mean or nice?
|
Thanks guys! That's what I needed!
|
|
|