Dec 6, 2009

Use Cell Background Image On Css?

free web hosting
Open Discussion > MODERATED AREA > The Internet > Web Design

Use Cell Background Image On Css?

leiaah
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. huh.gif

Comment/Reply (w/o sign-up)

SystemWisdom
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!

Comment/Reply (w/o sign-up)

badinfluence
hey, i cant answer right now yet..but you can have some reference from this sites..

QUOTE


hope, find out some smile.gif

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : cell, background, image, css

  1. How To Add The Flash In Our Website ?
    Animated image in website make the site atractive, but take more time (4)
  2. Cascading Windows
    How do I make the image? (5)
    Hi there everybody! Well as the title says I'm wanting to make something like this But
    I've got WindowsXP. The image I'm wanting to make is similar to the abouve but the windows
    are turned slightly as if they were a peice of paper. Is there a program that does it? Heres another
    image of what I'm wanting to do. Thanks guys Karlos....
  3. Image Calling Problem Solved
    I was having issues trying to call an image from a folder. (1)
    Alright so this is for example You'd have a site and the structure is like this.
    http://www.url.com/ a folder of images /images/ and some pages in this parent directory. However,
    I have another folder so it's http://www.url.com/other/ and this index page needs to call
    things from http://www.url.com/images/ and it can't. It won't load. I've had the
    call be to CODE or and It doesn't work. I can't call to the URL 'cause the
    server dosen't allow remote calling, changing that is not an option. It won't call ....
  4. Image Anywhere
    (2)
    I want to know how to put an image anywhere in the page using HTML/JavaScript. Please Help.....
  5. Ie 6 Display Problem
    unexpected background color (5)
    Hi guys, I have just tested my site with IE6 and there seems to be some rendering problems:
    http://www.rosemarysmediation.com/index.php?page=home All of that aqua color should be black as
    you can see in firefox. Any help or suggestions would be greatly appreciated. Cheers /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
  6. Image Not Taking The Right Size In Web Page
    An image is correct when designed, but not when put in a website (1)
    When trying to make a web page with a GIF image on it which runs a coloured bar along the top and a
    coloured curve along the side, I come across the weird thing that, when I put the image on a web
    site, it does not take in the whole top and does not run from top to bottom completely. The image is
    made in Adobe Photoshop at a resolution of 1024X768 pixela and looks correct , ie. the horizontal
    bit runs completely from left to righ and the vertical bit completely from topright to bottom right,
    yet when put in to the web page, it shows with big margins left and right and to....
  7. How Do I Put A Flash Image In My Website
    (10)
    oke i got flash now and i made this button http://www.crazydesign.trap17.com/coolflashthingy.swf
    this button i wanne use for my website now my question is, what do i need to put it online do i need
    a special code or something,i'm not experienced with this,i heard something about a special code
    u need for it,but i dunno wichi'm just used to using tis QUOTE ....
  8. Selecting Specific Part Of Image And Adding Description
    Please help (6)
    Many of you would have noticed that on flickr, there's feature that you can select some part of
    the picture (usually there' a small box) and add description for that part when you upload. Can
    someone tell me what kind of feature it is, and how it can be made ? im very keen to learn about
    that. I have attached the image below, there' you can see the boxes on the picture.. i want to
    learn how to make that feature.. please help me. Thanks. Sami. ....
  9. Hoverbox Image Gallery
    a pretty cool way to present Images on a page (1)
    Hoverbox is an Image Gallery which I found some time ago. The feature I like the most about it is
    the effect of the "on-hover" state which changes the image from a small thumbnail size to a
    "mid-size" image. Essentially, it doubles the size of the picture when your mouse hovers on it. The
    Hoverbox uses CSS for the size change and needs no javascript to perform. In fact, it works the same
    without javascript. And... it apparently works in IE. The CSS method used includes 'hiding'
    the larger image until the 'on-hover' state is reached. As you know, IE&#....
  10. How Do You Enlarge An Image?
    (8)
    Hey everyone, I need some help on how to make a small image bigger once you click on it. If you
    know ebay, then you know what I'm talking about. There are always sample pictures of the
    product that the seller is selling. Once you click on the tiny pictures, the tiny picture becomes
    larger. Look below... Also, how do you for example..........click on a link, and the
    link automactically takes you like half page down to see a picture? The link will not take you to
    another page, it wil just take you to a different part of the same page as the link itself....
  11. Making A Scroll Bar In Flash
    with an image and words on it (7)
    does anybody know how to make a scrollbar for my game page I am making on my site. This whole site
    is completely in flash. I know how to make a scrollbar for just words but not when there is an
    image on there also. Does anybody know?....
  12. Image Galleries
    Which one to choose ? (10)
    As we all must have noticed that the Fantastico section of our trap17 website admin accounts have 3
    options for Picture Galleries. 1... 4Images Gallery 2... Coppermine Photo Gallery 3... Gallery
    I would like to use one of these, but i am very confused which one to select. Primary selection
    criteria would be The Looks and then safety of image files. also ease of adding images (last) So
    what do you think which one should I go for ? Cheers....
  13. Image Refresh
    (6)
    Hi all, Does anyone know if there is any way to refresh only an image in a webpage? I can't use
    the meta refresh because that would defeat the purpose of this page. If a link to this page is
    needed to see what I mean, let me know. I am using layers and they are dragable by visitors and if I
    refresh the whole page, the layers get reset. kvarnerexpress....
  14. Syndicated Image Feeds
    Need help setting it up and keywords (0)
    I'd like to offer some of my digital photos as syndicated image feeds, but when I search on that
    term, all I get is porn and lottery sites. Maybe I'm calling this the wrong thing. Here's
    what I want to do: Offer "picture of the week" images that people can link to, once, but they
    update, automatically every week. I can do them all different ways--in web page templates, as
    banners, as puzzles (where they see a small part and have to guess what it is), etc. I tried it
    out as a dorky table-based template and it works fine. Here's the link, so you can get ....
  15. Great Background Images
    Don't miss them! (1)
    Here it is: http://home.arcor.de/stefun132/Hintergrund/ ....
  16. Great Background Images
    Don't miss them! (2)
    Here it is: http://home.arcor.de/stefun132/Hintergrund/ ....
  17. Avoid Image Download
    (7)
    Hi guys, I am working on a Web page for a photographic center. They want to show photographs but
    they do not want people to be able to download it. Because some of these photographs are propietary.
    Is that possbile?. Can anyone tell me how can i manage to do that on a Web? thanks in advanced for
    your help!! SAC....
  18. Rollover Image Tutorial
    (2)
    make it so that i have a button, probably an opaque one, and when it is scrolled over it displays
    another image, a solid one. I believe this is a javascript command, and I already have all the
    images set, i just need to know the coding. Thanks for the help.....
  19. Image Splicer?
    (1)
    Ok, question to everybody? Do you know if Photoshop 7 has an included image splicer?...I used to
    have PSP and it had a good one, that generated code for a layout, too. I was kinda
    wondering...because if not, I really should find a free one online... Which brings me to my next
    question...any good splicer/code generator out there, that's free? I really could use one...it
    makes things go so much faster...I mean, doing everything in notepad and all. /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> Thanks in advance to all
    rep....
  20. Move/delete Image On Webpage Automatically?
    (2)
    Hi, Im creating a website that sells carpets and basically ive created webpages with the picture and
    checkboxes underneath the pictures so users can select which carpet they want! Once they submit the
    form, we get the order including form details! The problem is that once the user checks the
    checkboxes, i want to be able to delete that image from that webpage or move that picture to another
    location in the folders i have stored on the server. The reason is becuase evry carpet is unique so
    that two people cant order the same carpet! Now wat is the best way 2 do this..... ....
  21. For Anyone Who Wants To Have Compact Image Gallery
    Click here (4)
    Mini gallery ....
  22. Image Weaver
    free flash gallery component (0)
    I was surfing and came across this, and I love how it looks, but I still dunno how to use it, lol.
    Thought I'll share it for those who do. http://imageweaver.buggedcom.co.uk ....
  23. Couple Of Image Minipulations
    (7)
    Couple of nasty pictures ive made from photos which i took. ....
  24. My First Image
    (16)
    Okay i want an opinon on how my first images i have made look. I used fireworksMX to create them.
    First Image 2nd image ....
  25. Image hosting site...
    (12)
    I want to setup a simple web hosting site for something to do, but I dont know where to beguin, does
    anyone know where I can find a whole site ready made, something you can just edit to your taste and
    use? Thank you, cragllo.....

    1. Looking for cell, background, image, css

Searching Video's for cell, background, image, css
See Also,
advertisement


Use Cell Background Image On Css?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com