You will need to use padding again to put the text into the correct area, use the guide below for help. If you get stuck, ask 
CSS Padding

CSS Padding
![]() |
|
|||||||
| Web Design - Background images for table cells posted in the Web & Networking forums; You will need to use padding again to put the text into the correct area, use the guide below for help. If you get stuck, ask CSS Padding... |
|
|
|
|
|
#15 |
|
Tech Support Team
![]() Join Date: Jul 2006
Location: /home/upgrader/
Posts: 7,308 PC Experience: Some Experience
|
You will need to use padding again to put the text into the correct area, use the guide below for help. If you get stuck, ask ![]() CSS Padding |
|
|
|
|
|
#16 |
|
Silver Member
![]() Join Date: Dec 2007
Posts: 170 PC Experience: Experienced
|
Upgrader, from adding any padding this happens...
![]() Call on DarkLord and see what he says. |
|
|
|
|
|
#17 |
|
Tech Support Team
![]() Join Date: Jul 2006
Location: /home/upgrader/
Posts: 7,308 PC Experience: Some Experience
|
You must have done the padding wrong, please post your code.
I'm trying to get you to learn it hence posting the link to how padding works above, instead of pasting the correct code
|
|
|
|
|
|
#18 |
|
Silver Member
![]() Join Date: Dec 2007
Posts: 170 PC Experience: Experienced
|
Upgrader I know how padding works. It's the space between the text and the block that's its inside.
But this is the code anyway... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head><title>Table Colour Backgrounds</title> <style type="text/css"> body {font-family: "Book Antiqua" font-size: 20px; color: black;} h1 {font-size: 30px;} .arsenal {display: block; position: absolute; background:url('bkred.gif'); width: 250px; height: 350px; left: 100px; top: 60px; color: white; font-size: 20px; padding-top: 55px; text-align: center;} .brighton {display: block; position: absolute; background:url('bkblue.gif'); width: 250px; height: 350px; left: 400px; top: 60px; color: white; text-align: center;} .chelsea {display: block; position: absolute; background:url('bkgreen.gif'); width: 250px; height: 350px; left: 700px; top: 60px; color: white; text-align: center;} </style> </head> <body> <h1>Table colour backgrounds</h1> <div class="arsenal"> <p>Bengal Tiger</p> </div> <div class="brighton"> </div> <div class="chelsea"> </div> </body> </html> |
|
|
|
|
|
#19 |
|
Tech Support Team
![]() Join Date: Jul 2006
Location: /home/upgrader/
Posts: 7,308 PC Experience: Some Experience
|
Hi Tygra,
You haven't added padding to the left, right or bottom so it's going to hit the sides. |
|
|
|
|
|
#20 |
|
Silver Member
![]() Join Date: Dec 2007
Posts: 170 PC Experience: Experienced
|
Upgrader, I added padding to all sides and got this...
|
|
|
|
|
|
#21 |
|
Tech Support Team
![]() Join Date: Jul 2006
Location: /home/upgrader/
Posts: 7,308 PC Experience: Some Experience
|
Hi Tygra, can you please post the code. If paste the code at each problem it will make it much quicker to resolve.
Also, you shouldn't remove no-repeat from the background attributes otherwise you get the tiled effect like above. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| background, cells, Fixed:, images, Open:, table |
Similar discussions...
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Selecting Excel Cells With C# | madmatt2006 | Programming | 2 | 05-04-2009 12:45 PM |
| Erase unnecessary Line Breaks in the cells | artner0112 | Office Software | 5 | 10-22-2008 02:22 PM |
| Pending: background images/themes missing from web sites | ras85uk | Internet Help | 1 | 07-04-2008 04:59 AM |
| <News> Ships Test Fuel Cells | Newsie | IT News | 0 | 08-06-2007 08:35 AM |
| <News> Microsoft Denies it Will Sell Fuel Cells | Newsie | IT News | 0 | 04-18-2007 08:33 AM |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|