Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 03:53 am EST

Geeklog Forums

HTML Question


Status: offline

sammykrupa

Forum User
Junior
Registered: 12/05/04
Posts: 28
determined
Hey! This question is not directly tied to Geeklog, but since the people on these forums tend to be geniuses I thought I would throw this question to you guys!

See this code:
Text Formatted Code

#sidebar {
  width:220px;
  float:right;
   border:1px solid #333;
  }

 


I would like to be able to have content of the box (pictures, text etc.) stay X pixels away from the border (A.K.A. border:1px solid #333Wink. Any suggestions? Question

Thanks! Very Happy
Sam Krupa
 Quote

Status: offline

sammykrupa

Forum User
Junior
Registered: 12/05/04
Posts: 28
Anyone?
Sam Krupa
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
try
padding: 3px;
or even
margin: 3px;

depending on your browser, this should work fine.
 Quote

sammykrupa

Anonymous
Thank You!
 Quote

All times are EST. The time is now 03:53 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content