php forum
php mysql forum
php mysql smarty
 
Topic Options
#268003 - 01/25/04 04:17 PM CSS 101
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
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 <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /> <br /> <br />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. <br /> <br />.tag-name { <br /> background-image: url(/path/to/image.gif,jpg,png,jpeg); <= path to image. <br /> <br /> 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. <br /> <br /> 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; . <br /> <br />background-color: #ffffff; <= this is fairly straight forward. <br /> <br />height: 25px; <= size of image used. <br /> <br />width: 25px; <= size of image used. <br />} <br /> <br />Hope this helps <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />


Edited by J.C. (01/25/04 04:38 PM)
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#268004 - 01/25/04 05:52 PM Re: CSS 101 [Re: chrisX]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
thanx Daddy can we have that Sex Talk next? <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#268005 - 01/25/04 06:14 PM Re: CSS 101 [Re: 234234]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Sex? Hmmmmmmmmm I vaguely remember something about that, before I started web design and coding..lol
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#268006 - 01/25/04 07:00 PM Re: CSS 101 [Re: chrisX]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
thanks for the pointers <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#268007 - 01/25/04 07:09 PM Re: CSS 101 [Re: SurfMinister]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
<img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#268008 - 03/16/04 08:46 PM Re: CSS 101 [Re: chrisX]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Another lil tidbit...<br /><br />Have you ever seen the border around an image in a post, because it was used as a link to somewhere else? <br /><br />.post IMG {<br />border-width: 0px;<br />}<br /><br />Should get rid of it <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#268009 - 03/17/04 12:25 AM Re: CSS 101 [Re: chrisX]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Good tip. Thanks.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#268010 - 03/19/04 01:02 AM Re: CSS 101 [Re: Daine]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
If you have struggled like I have with HR's in all different browsers, this way seems to be the best.<br /><br />hr {<br /> background-color: #EEEEEE;<br /> border: 0;<br /> color: #EEEEEE;<br /> height: 1px;<br /> width: 80%;<br />}<br /><br />If like me, you want it thin.
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#268011 - 03/24/04 02:16 PM Re: CSS 101 [Re: chrisX]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Todays lil tip:<br /><br />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.
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#268012 - 05/13/04 01:24 PM Re: CSS 101 [Re: chrisX]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
let me add this site I use it alot to understand CSS<br />as a reference<br /><br />http://www.blooberry.com/indexdot/css/index.html<br /><br />and<br /><br />for html <br /><br />http://www.blooberry.com/indexdot/html/index.html
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#268013 - 10/24/04 02:48 AM Re: CSS 101 [Re: 234234]
kristiet Offline
Junior Member

Registered: 10/08/04
Posts: 18
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.<br /><br />is there somewhere that i can tell the page to do an automatically refresh after each page change?

Top


Who's Online
0 registered (), 24 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks