redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

a border around a layout


Goto page 1, 2  Next
 
Post new topic   Reply to topic    Web Design Forums -> HTML forum
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% ?
  Reply with quote


froomzer



Joined: 23 May 2006
Posts: 148
Huh?
  Reply with quote
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
  Reply with quote
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
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Yes
  Reply with quote
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
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Well then how do you suggest I add a border around a layout
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Html { border: 1px solid #000; } ?
I'm not sure what you mean
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Take for example osCommerce
Ever work with imt ?
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
You could also put it around the most closely related element...
  Reply with quote
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 ?
  Reply with quote


froomzer



Joined: 23 May 2006
Posts: 148
So add a frickin' border to that element
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
#wrapper { border: 1px solid black; }
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Border: 1px solid #color
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
It wouldnt come out right if i added borders to the specific elements
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
You can add it to whatever you want
That's what css is really good at
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
optomeb: you dont have a wrapper element that contains your header/footer/content etc?
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Klimapol : im using osC, so im pretty sure not
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Look at your rendered result... pick the element that you want to add the border to
  Reply with quote
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
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
optomeb: you can use border-width: to disable the border on some edges
  Reply with quote


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 ?
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Boxes only have 4 sides
  Reply with quote
optomeb



Joined: 19 May 2006
Posts: 113
Well my images are also set to bg
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
optomeb: do you havea link?
  Reply with quote
Page 1 of 2 Goto page 1, 2  Next
Post new topic   Reply to topic    Web Design Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group