[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.


 Subscribe in a reader

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

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Oct 4th, 2007, 08:42
New Member
Join Date: Oct 2007
Location: Holland
Age: 20
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Oct 4th, 2007, 08:50
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,708
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 Posts
Re: CSS/Html problem

Are you able to post a link or the code.
Thanks,
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Oct 4th, 2007, 08:53
New Member
Join Date: Oct 2007
Location: Holland
Age: 20
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

I dont have hosting yet, you want all the coding?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Oct 4th, 2007, 09:00
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Oct 4th, 2007, 09:03
New Member
Join Date: Oct 2007
Location: Holland
Age: 20
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Oct 4th, 2007, 09:16
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,708
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 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 Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)

Last edited by karinne; Oct 4th, 2007 at 12:06. Reason: Changed to [ html ] vBcode
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Oct 4th, 2007, 09:17
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Oct 4th, 2007, 09:18
New Member
Join Date: Oct 2007
Location: Holland
Age: 20
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

Thank you it works !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Oct 4th, 2007, 09:19
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Oct 4th, 2007, 09:22
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,708
Blog Entries: 14
Thanks: 3
Thanked 33 Times in 31 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 Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Oct 4th, 2007, 09:22
New Member
Join Date: Oct 2007
Location: Holland
Age: 20
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS/Html problem

No problem Monie, thank you aswell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old Oct 4th, 2007, 09:23
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old Oct 4th, 2007, 09:24
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 21:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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