| View previous topic :: View next topic |
| Author |
Message |
optomeb
Joined: 19 May 2006 Posts: 113
|
What attributes should I use to have a border around a layout fit snug around that layout
Width=100% ? |
| |
|
|
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| Huh? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
Got a layout, want to put a border around the layout
Follow me ?
So I figured id use a table and stylize that table |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
Are you talking about the default margin/padding on the body/html elements
Well that would be silly |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Yes |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
Html, body { margin: 0; padding: 0; }
You shouldn't use a table for anything other than tabular data |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Well then how do you suggest I add a border around a layout |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
Html { border: 1px solid #000; } ?
I'm not sure what you mean |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
Take for example osCommerce
Ever work with imt ? |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| You could also put it around the most closely related element... |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
You know how it leaves spaces open and shit? I just want to close all that off, put a border around the layout
A border around the header/footer
And left and right sides
Get it now ? |
| |
|
|
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| So add a frickin' border to that element |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| #wrapper { border: 1px solid black; } |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| Border: 1px solid #color |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| It wouldnt come out right if i added borders to the specific elements |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
You can add it to whatever you want
That's what css is really good at |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| optomeb: you dont have a wrapper element that contains your header/footer/content etc? |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Klimapol : im using osC, so im pretty sure not |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| Look at your rendered result... pick the element that you want to add the border to |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Yes, but then it would border the entire element instead of the the 4 sides I need bordered |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| optomeb: you can use border-width: to disable the border on some edges |
| |
|
|
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Klimapol : that would be a mess, there is a tag to contain header/content/footer , and then just add a border to that tag ? |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| Boxes only have 4 sides |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| Well my images are also set to bg |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| optomeb: do you havea link? |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|