web hosting and development forums
Web Design and Development Forums Archive


Index - HTML forum

a border around a layout


Post reply

What attributes should I use to have a border around a layout fit snug around that layout Width=100% ?
Huh?
Got a layout, want to put a border around the layout Follow me ? So I figured id use a table and stylize that table
Are you talking about the default margin/padding on the body/html elements Well that would be silly
Yes
Html, body { margin: 0; padding: 0; } You shouldn't use a table for anything other than tabular data
Well then how do you suggest I add a border around a layout
Html { border: 1px solid #000; } ? I'm not sure what you mean
Take for example osCommerce Ever work with imt ?
You could also put it around the most closely related element...
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 ?
So add a frickin' border to that element
#wrapper { border: 1px solid black; }
Border: 1px solid #color
It wouldnt come out right if i added borders to the specific elements
You can add it to whatever you want That's what css is really good at
optomeb: you dont have a wrapper element that contains your header/footer/content etc?
Klimapol : im using osC, so im pretty sure not
Look at your rendered result... pick the element that you want to add the border to
Yes, but then it would border the entire element instead of the the 4 sides I need bordered
optomeb: you can use border-width: to disable the border on some edges
Klimapol : that would be a mess, there is a tag to contain header/content/footer , and then just add a border to that tag ?
Boxes only have 4 sides
Well my images are also set to bg
optomeb: do you havea link?
Is that what a wrapper tag does, where could I learn about a wrapper tag A link to what
Your page
Not at the moment no
So we can view your source
Is it ok to be derogatory yet?
What for Http://www.xpalms5.made2own.com/wifitech/ See how the border is bordering the edges of the page and not the layout ?? thats because of width=100% , but how would I get it just to outline the general layout
So add a silly border to the body element Oh Just the middle part?
Ya Just the layout Just the design I should say
Put all that garbage in a div width: 830px; give it a border and center it
Around all 4 edges
Well, it would be far easier if you hadn't used tables... but add an id to the outer table and/or surround it with a div And then just use the stuff we told you earlier
So add a id tag, and then use wrapper ? Is wrapper a selector ?
Are you sure that you are the best person to be in charge of an ecommerce site?
You can also do body { width: 830px; margin: 0 auto; }
Why, are you doubting my abilities ? Thanks Klimapol
Well duh This isn't even the tough stuff
This is my third ecommerce site Im not gonna say im a know it all, but I know enough to secure myself and make everything work right php wise.
But you don't even have the basic skills of web development? scary
Im learning man, cant knock me for that Mmbeer and Klimapol : I try to absorb as much info as I can, ya know, I have read books and I do know html/css pretty decently, I just get frustrated and turn to chans for help sometimes because its quicker than diagnosing the problem on my own, but for those who care, it works, and worked perfectly, thank you both.
The problem is, that you obviously don't know css or html... a quick glance at your page reveals as much ;)
Thats not my code Lol




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com