This is a discussion on "div width" within the Web Page Design section. This forum, and the thread "div width are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
div width
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
hey is there some way sing javascript and/or css to make a div act like a table cell...ie. a table cell is only as wide as its content. but a div is as wide as it can be...unless other other wised stated. I want the div to "contract" to its content as much as possible. Id there are any example or code that you know off please point it to me ...thanks
|
|
|
|
|||
|
Re: div width
you can try adding display:table, which is supposed to make it behave like a table element.
|
|
|||
|
Re: div width
we have a genius. thanks. i feel dumb. didnt know it was that simple. thanks
|
|
|||
|
Re: div width
hey we have a problem though. it does not work in ie. Is there any way around this?
|
![]() |
| Tags |
| div |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| div width | drappendix | Web Page Design | 2 | Aug 22nd, 2007 14:34 |
| Input width | PicoDeath | Web Page Design | 3 | Jul 31st, 2007 16:03 |
| Div width problem | NiKnight | Web Page Design | 1 | Oct 13th, 2006 23:24 |
| set CORRECT width for <img/> | iersel | Web Page Design | 8 | Jul 27th, 2006 07:33 |
| Help with Width in Firefox.... | JohnMitch | Web Page Design | 2 | May 25th, 2005 09:26 |