Previous Thread
Next Thread
Print Thread
Rate Thread
#268003 01/25/2004 5:17 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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.

- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
chrisX #268004 01/25/2004 6:52 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?

234234 #268005 01/25/2004 7:14 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Sex? Hmmmmmmmmm I vaguely remember something about that, before I started web design and coding..lol


- Custom Web Development
http://www.JCSWebDev.com
chrisX #268006 01/25/2004 8:00 PM
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


- Allen wavey
- What Drives You?
SurfMinister #268007 01/25/2004 8:09 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290


- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
chrisX #268008 03/16/2004 9:46 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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


- Custom Web Development
http://www.JCSWebDev.com
chrisX #268009 03/17/2004 1:25 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Good tip. Thanks.

Daine #268010 03/19/2004 2:02 AM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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.


- Custom Web Development
http://www.JCSWebDev.com
chrisX #268011 03/24/2004 3:16 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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.


- Custom Web Development
http://www.JCSWebDev.com
chrisX #268012 05/13/2004 1:24 PM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
let me add this site I use it alot to understand CSS
as a reference

http://www.blooberry.com/indexdot/css/index.html

and

for html

http://www.blooberry.com/indexdot/html/index.html

Sponsored Links
234234 #268013 10/24/2004 2:48 AM
Joined: Oct 2004
Posts: 16
Junior Member
Junior Member
Offline
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?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)