SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Jul 10, 2005, 10:53 #1
- Join Date
- Jan 2002
- Posts
- 109
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HELP - Problem editing a macromedia tutorial
Ive found a tutorial by those nice ppl at macromedia here. However when i place another <div> inside their wrapper then edit padding, the padding doesnt seem to be working.
What can i do to get a working template so I can add content inside?
Here is the xhtml code from the tutorial
HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="CssFiles/shadow.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="content"> blah blah blah how big is the padding </div> </div> </body> </html>
HTML Code:/* CSS Document */ body { margin: 0; padding: 0; text-align: center; /* hack to force IE5.x pc to center our wrapper div */ background-image: url(../images/body_bg.gif); } #wrapper { margin: 0 auto; background-image: url(../images/wrapper_bg.gif); background-repeat: repeat-y; text-align: left; /* re-align the text to the left after the above hack */ width: 770px; } #content { padding: 100; }
-
Jul 10, 2005, 11:02 #2
- Join Date
- Jun 2004
- Location
- Finland
- Posts
- 703
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Plain 100 won't do, you need to use units. Px is probably what you're looking for. (padding: 100px)
-
Jul 10, 2005, 11:22 #3
- Join Date
- Jan 2002
- Posts
- 109
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanx. I really knew it was simple. just couldnt work it out.
Shortened the css a bit too much i reckon
Bookmarks