Help

This is a discussion on "Help" within the Starting Out section. This forum, and the thread "Help are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 21st, 2007, 01:31
Junior Member
Join Date: Sep 2007
Location: Cumbria
Age: 24
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Help

Hi, I'm pretty new to web design.

I've just designed a website for my boyfriends building firm, I ran it through the validating thing and used the tidy thing (sorry not technical!) but now the text size has changed, the menu header is to the right and a different colour and the photos page has gone funny at the bottom.

I used bravenet as a host and used one of their templates for the layout but then customised it for my taste using my very basic knowledge of css.

The website is http://solidconstruction.bravehost.com

The css page is http://solidconstruction.bravehost.com/style.css

Any help would be appreciated

Thank you.

Last edited by xkatx21x; Sep 21st, 2007 at 02:14.
Reply With Quote

  #2 (permalink)  
Old Sep 21st, 2007, 06:09
Junior Member
Join Date: Sep 2007
Location: Cumbria
Age: 24
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help

hi Ive managed to solve some of the problems but on some pages the footer is out of line and I still can't find a way to change the position and size of the menu header
Reply With Quote
  #3 (permalink)  
Old Sep 21st, 2007, 14:39
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help

Oh dear ... there's A LOT of work to be done. Did you see it in IE6?

Nice to see that you are using CSS for the layout at least.

You don't have a full doctype. You're better off using a strict doctype anyways.

There's A LOT of unnecessary divs in there! Like all those c??? What's with that?

And
Code: Select all
#pageWrapper {

width : 754px;

margin : auto;

text-align : center;

}

#pageAlign {

text-align : left;

}
Why do you align the text to the center and then re-align it to the left?!

This is the code for a basic 2-column layout site

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
   
<html lang="en-CA">

<head>
	<title>Some title</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	
	<style type="text/css">
	html, body, div { margin: 0; padding: 0; }
	
	body {
		margin: 0 auto;
		width: 770px;
	}
	
	#branding, #container, #siteinfo {
		width: 770px;
	}
	
	#container {
		overflow: auto;
	}
	
	#menu {
		width: 200px;
		float: left;
		background-color: #900
	}
	
	#content {
		width: 560px;
		margin-left: 10px;
		float: right;
		background-color: #090;
	}
	
	#siteinfo {
		background-color: #009;
		color: #fff;
	}
	</style>
	
</head>

<body>

<div id="branding"><h1>some header stuff here</h1></div>

<div id="container">

	<div id="menu">menu here<br><br><br>all the way!</div>
	
	<div id="content">
		<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis feugiat. Curabitur condimentum ligula imperdiet lectus. Sed justo. Suspendisse faucibus. Morbi sit amet diam. Phasellus egestas elit ac ante. Suspendisse sed tortor. Mauris vel nunc et risus pharetra elementum. Phasellus accumsan risus non arcu. Phasellus mollis eros id lorem. Sed nec felis. In eget diam fringilla risus accumsan malesuada. Cras urna neque, convallis quis, consequat sed, tristique at, metus. Nulla tincidunt, lacus in feugiat posuere, diam pede mattis nisi, vulputate feugiat massa justo et arcu. Integer pretium tellus et dui.</p>
		
		<p>Vivamus sit amet lectus. Sed lorem tellus, sagittis vel, volutpat eu, sodales at, tellus. Nunc quis ipsum et erat malesuada suscipit. Integer urna mi, feugiat et, lacinia eu, suscipit nec, nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Etiam iaculis magna eget nunc. Curabitur aliquam vestibulum enim. Duis mattis varius leo. Vivamus vel turpis. Quisque lectus massa, euismod mattis, aliquam at, feugiat at, massa. Vivamus eget enim eget felis congue fringilla. Phasellus nec nibh eget lectus pretium ullamcorper.</p>
		
		<p>Nullam eleifend. Fusce sed nunc. Ut consequat. Etiam interdum massa. Nulla aliquam, dui quis mollis eleifend, est massa pretium justo, a porttitor pede tortor at velit. Morbi tellus sapien, condimentum eget, sollicitudin nec, faucibus pretium, velit. Morbi eu odio scelerisque metus porta venenatis. Aliquam erat volutpat. Curabitur convallis, tellus eget scelerisque euismod, metus ligula molestie elit, a varius risus nibh sit amet mi. Mauris erat est, fringilla sit amet, pellentesque eget, dapibus vel, augue. Aliquam justo quam, varius non, ornare sed, lobortis sed, ante. Morbi rutrum.</p>
	</div>

</div>

<div id="siteinfo">and some copyright bla bla here</div>

</body>
</html>
Reply With Quote
  #4 (permalink)  
Old Sep 21st, 2007, 17:13
Junior Member
Join Date: Sep 2007
Location: Cumbria
Age: 24
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help

Ok basically like I said, I used a template from bravenet, deleted a few bits I didn't want, changed the colours and changed one of the images, then I used their visual editor to change the text because I "thought" it would be easier. But instead it left alot of mark up behind so I attempted to fix it by hand.

Then I ran it through validator.w3.org which showed up some errors so, I used the tidy program thing at the bottom of their page. I just copied and pasted it which is where all the c's come from thats what they changed it to.

As for the unnecessary code I haven't changed much code as I am still learning css (using w3shools.com) and wasn't sure what to delete. Which has obviously resulted in the conflicting code.

The reason I didn't use a strict doctype is w3schools recommended transitional as strict was too strict.

So should I start again using a new hand written css rather than cheating using the template you posted above or is the page I have salvagable? If so where do I start.

Sorry if I'm asking too much but what better way to learn than to practice.

And I promise not to cheat in future it causes to much hassle
Reply With Quote
  #5 (permalink)  
Old Sep 21st, 2007, 17:28
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help

Quote:
Originally Posted by xkatx21x View Post
And I promise not to cheat in future it causes to much hassle
:rofl: Now you see why we ALWAYS encourage people to learn HTML and CSS and hand-code their sites

I would start from scratch if I were you. Going through that jungle of code will be a nightmare.

Start with the basic code I posted earlier and continue on from there.

There are also more links to css examples in the thread - Resources for learning how to use CSS for layout
Reply With Quote
  #6 (permalink)  
Old Sep 22nd, 2007, 17:05
Junior Member
Join Date: Sep 2007
Location: Cumbria
Age: 24
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help

Thanks for the help I will try and start again, but in the mean time is there a quick fix to get rid of that huge gap between the header and the image in IE just so I can keep the site up and running while im redoing it?
Reply With Quote
  #7 (permalink)  
Old Sep 22nd, 2007, 19:06
Junior Member
Join Date: Sep 2007
Location: Cumbria
Age: 24
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help

Nevermind I've managed to get rid of the space for now by putting the div tags in a row instead of a list.
Reply With Quote
  #8 (permalink)  
Old Sep 22nd, 2007, 20:23
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,639
Thanks: 0
Thanked 7 Times in 7 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Help

Glad you got it fixed, and thanks for posting the soloution!
Reply With Quote
Reply

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


All times are GMT. The time now is 20:53.


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