This is a discussion on "floating a div across the whole width and height of a table cell" within the Web Page Design section. This forum, and the thread "floating a div across the whole width and height of a table cell are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
floating a div across the whole width and height of a table cell
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
floating a div across the whole width and height of a table cell
I have a cell and I'd like to have a div stretch the height and width of that cell. E.g.:
I've currently got the shadow bg set on the <td> underneath everything, but when there are form <input>'s they are above the shadow so it ruins the effect. We'd like to see this shadow slightly over the top of everything. You can see the attached image to see how it looks now. |
|
|
|
#2
|
||||
|
||||
|
Re: floating a div across the whole width and height of a table cell
I'm not sure if this would work, but try setting the z-index of your div to something relatively high. For example
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#3
|
|||
|
|||
|
Re: floating a div across the whole width and height of a table cell
I had tried what you suggested already, but tried it again... still no cigar though... it seems the 'height: 100%' on the div doesn't seem to do anything as in its nowhere to be seen, but if I give it a fixed height like 800px it will be 800px high but just pushes the content below it downwards...
Here is the full code:
Any ideas? |
|
#4
|
|||
|
|||
|
Re: floating a div across the whole width and height of a table cell
I've moved the code beyond the <table> format... here is the complete code below now with the left and right cells... can anybody advise on how I could do this better??
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange table cell height issue | niko79 | Web Page Design | 16 | Jun 5th, 2008 10:14 |
| How to make a table height equal to the browser height ? | subhadip | Starting Out | 4 | Sep 20th, 2007 07:56 |
| Is there any way to decide cell width of excel. | priya | Other Programming Languages | 0 | Jul 26th, 2006 07:11 |
| Need to align width of Float table with the table below | Vertabase | Web Page Design | 4 | Mar 8th, 2006 21:21 |
| Table cell fixed width settings | autumn_whispers2me | Web Page Design | 5 | May 13th, 2005 13:00 |