|
|
|
|
![]() ![]() |
Jun 15 2005, 12:14 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 436 Joined: 21-January 05 From: Koronadal City, Philippines Member No.: 3,358 |
I wanted to have a button that changes the skin/theme of my site using css and php. I've already had the php code for switching between two different css but I don't know how to put an image background for each cell using css.
Can anyone help me? Sample codes would be nice. |
|
|
|
Jun 15 2005, 02:35 PM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 117 Joined: 3-May 05 From: A Canadian South of the 49th Parallel Member No.: 6,544 |
Some browsers support the background attribute in <TD> tags, but it is not a part of the standard.. meaning it will not validate under HTML4.01 or XHTML.. But that's not what you're looking for...
To do the same with CSS you can use the style attribute combined with the 'background-image' property as in: CODE <table> <tr> <td style="background-image: url(relative_path/my_image.gif)">My Cell</td> </tr> </table> The code above will validate under both HTML 4.01 and XHTML.. I hope that helps! |
|
|
|
Jun 16 2005, 01:10 AM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 283 Joined: 10-October 04 Member No.: 1,637 |
hey, i cant answer right now yet..but you can have some reference from this sites..
QUOTE http://www.netcode.net/tutorials/general/basic_css.php http://www.csszengarden.com/ http://swanilda.com/index.html and http://css.maxdesign.com.au/index.htm http://www.projectseven.com/tutorials/index.htm http://www.csscreator.com/ http://www.positioniseverything.net/index.php hope, find out some |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 05:32 AM |