|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
Okay class pay attention. Here's a lil tip for all the shadetree style sheeters here. Mods and admins, go watch TV, we know you know this already If you are placing an image in a cell for a wrapper or whatever other idea you have, you need to establish a few things in your css tag setup. .tag-name { background-image: url(/path/to/image.gif,jpg,png,jpeg); <= path to image. background-position: left middle; <= if you do NOT want the image to repeat, or have a special place for it to start from before it repeats, this is very important. background-repeat: no-repeat; <= this will only show the complete image (TD width/height permitting) and not "repeat" it all over the cell and/or table. The default is to repeat, so yes-repeat; is not used. You can also repeat it in one direction only. To repeat it horizontally and NOT vertically use repeat-x; To repeat it vertically and NOT horizontally, use repeat-y; . background-color: #ffffff; <= this is fairly straight forward. height: 25px; <= size of image used. width: 25px; <= size of image used. } Hope this helps
Last edited by J.C.; 01/25/2004 5:38 PM.
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
thanx Daddy can we have that Sex Talk next?
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
Sex? Hmmmmmmmmm I vaguely remember something about that, before I started web design and coding..lol
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks for the pointers
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
Another lil tidbit... Have you ever seen the border around an image in a post, because it was used as a link to somewhere else? .post IMG { border-width: 0px; } Should get rid of it
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
If you have struggled like I have with HR's in all different browsers, this way seems to be the best.
hr { background-color: #EEEEEE; border: 0; color: #EEEEEE; height: 1px; width: 80%; }
If like me, you want it thin.
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
Todays lil tip: The best way to finish off your CSS sheet is to drop by w3c.org and validate it. This ensures proper coding as well as compatibility with a wider array of browsers.
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
|
|
|
|
Joined: Oct 2004
Posts: 16
Junior Member
|
Junior Member
Joined: Oct 2004
Posts: 16 |
well, both of those are ok methods... they both work. the problem is that I have to hit refresh in order for the body background to show once I enter a category thread or if i go back... once i hit refresh, i can see the background.
is there somewhere that i can tell the page to do an automatically refresh after each page change?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|