![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Basically, I'm trying to find out of the border takes up space on the outside or the inside of the element. |
#3
| |||
| |||
|
|
Hi- I have a question that I haven't been able to find any info on: If I have an element (say, a <div> or a <table>) which is a certain fixed width (let's say 500px). If I add a CSS border of 2 px, does the element: a) become 504px wide, or b) does the inner area of the element become 496px wide? |
|
Basically, I'm trying to find out of the border takes up space on the outside or the inside of the element. |
#4
| |||
| |||
|
|
On 2006-09-29, chudzikr (AT) gmail (DOT) com <chudzikr (AT) gmail (DOT) com> wrote: Hi- I have a question that I haven't been able to find any info on: If I have an element (say, a <div> or a <table>) which is a certain fixed width (let's say 500px). If I add a CSS border of 2 px, does the element: a) become 504px wide, or b) does the inner area of the element become 496px wide? (a) for most things, but (b) for tables! Basically, I'm trying to find out of the border takes up space on the outside or the inside of the element. On the outside generally speaking, but tables and tds are a bit different. I suspect this goes back to HTML table attributes, where "width" specifies "the desired width of the entire table". |
#5
| |||
| |||
|
|
Hi- I have a question that I haven't been able to find any info on: If I have an element (say, a <div> or a <table>) which is a certain fixed width (let's say 500px). If I add a CSS border of 2 px, does the element: a) become 504px wide, or b) does the inner area of the element become 496px wide? Basically, I'm trying to find out of the border takes up space on the outside or the inside of the element. Any help would be appreicated! Thanks, Rob |
![]() |
| Thread Tools | |
| Display Modes | |
| |