Use Cell Background Image On Css?

free web hosting
Open Discussion > CONTRIBUTE > 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

Reply

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!

Reply

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

QUOTE


hope, find out some smile.gif

 

 

 


Reply



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*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. css background td - 8.05 hr back. (1)
  2. html how to apply image table background whole cell - 10.28 hr back. (1)
  3. css td background - 9.23 hr back. (2)
  4. css td background image - 0.26 hr back. (3)
  5. background image for a
using css - 21.22 hr back. (1)
  • how to use css for linking background image for webpage - 15.41 hr back. (6)
  • td background images in css - 30.53 hr back. (1)
  • cell background image css - 36.84 hr back. (1)
  • td background in css - 51.51 hr back. (1)
  • css td background image class - 64.07 hr back. (1)
  • css background image dont refresh - 67.64 hr back. (1)
  • css background image enlarge - 85.74 hr back. (1)
  • css style for background image td - 93.12 hr back. (1)
  • css flexible table background - 98.38 hr back. (1)
  • Similar Topics

    Keywords : cell, background, image, css

    1. Cascading Windows
      How do I make the image? (5)
    2. 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 <img src="images/" or <img src="../images/" and
      <img src="http://www.url.com/images/" It doesn't work. I can't....
    3. Image Anywhere
      (2)
      I want to know how to put an image anywhere in the page using HTML/JavaScript. Please Help.....
    4. 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" />....
    5. 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....
    6. 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 ....
    7. 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. ....
    8. 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&#....
    9. 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....
    10. Making A Scroll Bar In Flash
      with an image and words on it (4)
      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?....
    11. 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....
    12. 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....
    13. 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 ....
    14. Great Background Images
      Don't miss them! (1)
      Here it is: http://home.arcor.de/stefun132/Hintergrund/ ....
    15. Great Background Images
      Don't miss them! (2)
      Here it is: http://home.arcor.de/stefun132/Hintergrund/ ....
    16. Avoid Image Download
      (6)
      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....
    17. 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.....
    18. 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'
      border='0' style='vertical-align:middle' alt='biggrin.gif' /> Thanks in advance to all repliers,
      th....
    19. 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 d....
    20. For Anyone Who Wants To Have Compact Image Gallery
      Click here (4)
      Mini gallery ....
    21. 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 ....
    22. Couple Of Image Minipulations
      (7)
      Couple of nasty pictures ive made from photos which i took. ....
    23. My First Image
      (12)
      Okay i want an opinon on how my first images i have made look. I used fireworksMX to create them.
      First Image 2nd image ....
    24. 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

    *RANDOM STUFF*





    *SIMILAR VIDEOS*
    Searching Video's for cell, background, image, css

    *MORE FROM TRAP17.COM*
    advertisement



    Use Cell Background Image On Css?



     

     

     

     

    ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
    Express your Opinions, Thoughts or Contribute your information that might help someone here.
    Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
    Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
    500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE