|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Problem with width for nested div padding Hi, I am working on a nested div tag. I have div "b" in side of div "a" tag Like follows Code: <div id="a"> some text <div id="a"> some text </div></div> I want div "b" to span the width of "a" & div "b"s padding. Is there any way doing this? |
#2
| |||
| |||
Re: Problem with width for nested div padding hey why don't you use table tag & solve the problem? Padding excluded from width is really not happening. I would like to ask, how to define perceptual width 100% and accurate padding 15px (I mean the inner space between borders and content), so that box will not overflow width of the screen? Thanks |
#3
| |||
| |||
Re: Problem with width for nested div padding hey you can use negative margin on insider nested div. Like this: Code: <div id="a" style="padding: 5px;"> some text <div id="b" style="margin:0 -5px; padding:0 5px;"> some text </div></div> |
#4
| |||
| |||
Re: Problem with width for nested div padding Ok thanks for the idea ill work around it & let you know if doesn't help me. Thanks guys |
![]() |
|
Tags: div padding, nested, width |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with nested div when the content width exceeds window size | Laurense | Software Development | 5 | 04-03-2010 07:58 PM |
Problem of nested query | MAGAR | Software Development | 4 | 09-12-2009 09:55 PM |
Problem in Nested folder in .NET | rashmi_ay | Software Development | 3 | 30-11-2009 10:36 PM |
Percentage problem on width of table columns | Zeverto | Software Development | 3 | 12-08-2009 11:42 AM |
Problem with IE7 width margin | Dharmesh Arora | Technology & Internet | 2 | 19-03-2009 03:24 PM |