[SOLVED] CSS/Html problem

This is a discussion on "[SOLVED] CSS/Html problem" within the Web Page Design section. This forum, and the thread "[SOLVED] CSS/Html problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 4th, 2007, 08:42
New Member
Join Date: Oct 2007
Location: Holland
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] CSS/Html problem

hello all,

I am a beginner webdesigner/coder and I am currently working on my portfolio to be done ( also for school ) and I've stumbled on a problem :

This is my first good design, so I want to make it good.

screenie.jpg

This is in firefox, I want the body where all the text and stuff's gonna be to be more to go down, but padding doesnt work; they are both DIV's ( the logo and the body ).

Does someone know how to get the body to go down more?

Thanks in advance.

Last edited by karinne; Oct 4th, 2007 at 12:05. Reason: Please attach big images!

  #2 (permalink)  
Old Oct 4th, 2007, 08:50
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: CSS/Html problem

Are you able to post a link or the code.
Thanks,
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
  #3 (permalink)  
Old Oct 4th, 2007, 08:53
New Member
Join Date: Oct 2007
Location: Holland
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

I dont have hosting yet, you want all the coding?
  #4 (permalink)  
Old Oct 4th, 2007, 09:00
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS/Html problem

Just send the .CSS and the .HTML code, and remember to put them inside the "[code]" tag.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
  #5 (permalink)  
Old Oct 4th, 2007, 09:03
New Member
Join Date: Oct 2007
Location: Holland
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

HTML: Select all
<!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><link rel="stylesheet" href="style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Portfolio</title>
</head>

<body>
<div class="logo"><img src="Logo.jpg" /></div>
<div class="body"></div>
</body>
</html>
this is the HTML
HTML: Select all
CSS:@charset "utf-8";
/* CSS Document */

body  {
background-image:url(Background.jpg);
background-repeat:repeat-x; }

.logo {
width:244px;
height:49px;
padding-left:38px;
padding-top:20px; }

.body {
width:763px;
height:437px;
background-image:url(Body.jpg);
background-repeat:repeat-x;
position:fixed;
 }
]

Last edited by karinne; Oct 4th, 2007 at 12:05. Reason: Changed to [ html ] vBcode
  #6 (permalink)  
Old Oct 4th, 2007, 09:16
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: CSS/Html problem

try the following:
HTML: Select all
<!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>Portfolio</title> 
    <style type="text/css">
    body { background-image:url(Background.jpg); background-repeat:repeat-x; } 
    .logo { width:244px; height:49px; padding-left:38px; padding-top:20px; background: url(Logo.jpg) 0 0 no-repeat; text-indent:-999px; } 
    .body { width:763px; height:437px; background-image:url(Body.jpg); background-repeat:repeat-x; position:fixed; margin-top:20px;}
    </style>
    </head> 
    <body> 
    <div class="logo"><h1>header text to describe the logo</h1></div> 
    <div class="body"> text here</div> </body> </html> 
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)

Last edited by karinne; Oct 4th, 2007 at 12:06. Reason: Changed to [ html ] vBcode
  #7 (permalink)  
Old Oct 4th, 2007, 09:17
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS/Html problem

Quote:
Originally Posted by Rienk0r View Post
Does someone know how to get the body to go down more?

Thanks in advance.
hai Rienk0r,

You seems new to this CSS. Why don't you read some of the good stuff that this forum has provideed. What I mean is, there a good "css for beginer" link for you to read and I am sure you will enjoy it.

by the way, padding is used if you want to add space between the outer border of your div and the content. In this situation, try add margin-top to your class body.

{margin-top: 20px}
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
  #8 (permalink)  
Old Oct 4th, 2007, 09:18
New Member
Join Date: Oct 2007
Location: Holland
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

Thank you it works !
  #9 (permalink)  
Old Oct 4th, 2007, 09:19
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS/Html problem

Just one minute behind you welshstew, lol.

We gave the same solution, by the way.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
  #10 (permalink)  
Old Oct 4th, 2007, 09:22
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: CSS/Html problem

You can also look a the resources at the top of this forum to help you start learning:

ukgeoffs css for beginners tutorial

karinnes resources for learning css

Monie, I must have a faster connection!
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
  #11 (permalink)  
Old Oct 4th, 2007, 09:22
New Member
Join Date: Oct 2007
Location: Holland
Age: 19
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

No problem Monie, thank you aswell
  #12 (permalink)  
Old Oct 4th, 2007, 09:23
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS/Html problem

Quote:
Originally Posted by Rienk0r View Post
Thank you it works !
Forgot to include the link here (by karinne)
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
  #13 (permalink)  
Old Oct 4th, 2007, 09:24
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: CSS/Html problem

Quote:
Originally Posted by welshstew View Post
You can also look a the resources at the top of this forum to help you start learning:

ukgeoffs css for beginners tutorial

karinnes resources for learning css

Monie, I must have a faster connection!
There you go again...
maybe I was typing a little bit slow... lol
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need help with HTML login Bravo81 PHP Forum 8 Jan 23rd, 2008 15:20
[SOLVED] HTML or XHTML marSoul Web Page Design 18 Dec 23rd, 2007 09:53
[SOLVED] transform the xml to html with php and xsl checkmate PHP Forum 4 Nov 5th, 2007 01:36
[SOLVED] Changing from html to CSS mcdanielnc89 Web Page Design 16 Oct 11th, 2007 04:29
HTML / div Problem ssnerdy Web Page Design 8 Oct 10th, 2007 14:02


All times are GMT. The time now is 06:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43