Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Constructing webpage basics?
Old 02-23-2009, 03:38 PM Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
I need to apply what I have read on HTML and CSS, I wish to start from the very basics and build on that step by step so I will appreciate some help and patience please to make sure I understand every symbol in a code.

First thing, what's the very first things you pro's do when planning to build a site? Do you draw out layout on paper?
mikehende is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2009, 01:31 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
I used divs to create blocks but I am only seeing the 'text" from the coding, I wish to "see" the blocks as in a template where you can see each block clearly outlined, how can I do so?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 02:46 PM Re: Constructing webpage basics?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Best way to do that is to apply a background color, temporarily, to your divs so you can see where things are falling. I also use borders, but borders add to the width of the divs, so a bg color is a better tool for 'seeing' how things are laid out.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 04:49 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
Any idea why this is not working please? As you can see, I have placed the bgcolor within the divs but I am seeing the entire page's background color changing instead?

Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
<div id="wrap">
<div id="header" bgcolor="green">Header information goes here.</div>
<div id="nav" bgcolor="blue">Left column content goes here. You'll need to adjust the

column width in the CSS part.</div>
<div id="content">Right column content goes here. You'll need to adjust the column width in

the CSS part.</div>
<div id="footer">Footer contents go here.</div>
</div>
</body>
</html>

Last edited by mikehende; 02-24-2009 at 04:51 PM..
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 05:08 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
Actually, looks like the "bgcolor" coding tag does not work for this? I tried using

<div style="background: green">

and this works.

Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
<div id="wrap">
<div id="header"<div style="background: green">Header information goes here.</div>
<div id="nav"<div style="background: blue"> >Left column content goes here. You'll need to

adjust the column width in the CSS part.</div>
<div id="content"<div style="background: yellow"> >Right column content goes here. You'll

need to adjust the column width in the CSS part.</div>
<div id="footer"<div style="background: red"> >Footer contents go here.</div>
</div>
</body>
</html>




mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 05:31 PM Re: Constructing webpage basics?
fitnfree's Avatar
Ultra Talker

Latest Blog Post:
Almond Cookie Recall
Posts: 384
Name: Jeni
Location: Wisconsin, USA
Trades: 0
I believe the "bgcolor" tag has been deprecated...anyone, do correct me I'm wrong on that, but I think that's correct. I do know it won't work with CSS but see you've found that out already!
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
fitnfree is offline
Reply With Quote
View Public Profile Visit fitnfree's homepage!
 
Old 02-24-2009, 05:56 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
The code above is giving 3 "parallel" sections, one on top of each other, I want to create 3 blocks. A rectangular block from left to right of the page for the header on top of the page and then 2 square blocks [left and right] underneath sort of like a table top resting on 2 blocks. What coding would I need to see this on a page please? Or can this only be done through css?

Last edited by mikehende; 02-24-2009 at 06:01 PM..
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 06:52 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
I am being told that I can only get the above with css coding, is that correct?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-24-2009, 07:01 PM Re: Constructing webpage basics?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML Code:
<div id="wrapper">
<div id="pg_header">Page Header</div>
<div id="right">Right Leg</div>
<div id="left">Left Leg</div>
<div id="pg_footer">Page Footer</div>
</div>
CSS
Code:
html, body {
    height:100%;
}
#wrapper {
    position:relative;
    height:100%;
    width:968px;
}
#pg_header, #pg_footer {
     width:100%;
}
#pg_header {
     height:100px;
}
#pg_footer{
    clear:both;
}
#right, #left {
     height:100%;
     width:45%;
}
#right {
    float:right;
}
#left {
    float:left;
}
Not actually tested BTW
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-24-2009, 07:59 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
Thanks, I will try this out tomorrow, let me address my other questions in the CSS forum.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-25-2009, 11:47 AM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
I pasted the html code you listed into the body of the index file and the css code into an external stylesheet but don't see any blocks or borders only the text, does it work with anyone else please?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-25-2009, 11:58 AM Re: Constructing webpage basics?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Simply add borders and colour into the CSS rules, it's just a skeleton layout as it stands.

The idea is that you learn by changing things for yourself and noting what happens. You can't "break" anything permanently
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-25-2009, 12:16 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
ok, understood, thanks, I will go look into that now.
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-25-2009, 01:10 PM Re: Constructing webpage basics?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Your code here is incorrect.
Quote:
<div id="header"<div style="background: green">
Needs to be <div id="header" style="background: green;"> if you're going to do it in-line like that.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-25-2009, 06:09 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
Quote:
Originally Posted by chrishirst View Post
HTML Code:
<div id="wrapper">
<div id="pg_header">Page Header</div>
<div id="right">Right Leg</div>
<div id="left">Left Leg</div>
<div id="pg_footer">Page Footer</div>
</div>
CSS
Code:
html, body {
    height:100%;
}
#wrapper {
    position:relative;
    height:100%;
    width:968px;
}
#pg_header, #pg_footer {
     width:100%;
}
#pg_header {
     height:100px;
}
#pg_footer{
    clear:both;
}
#right, #left {
     height:100%;
     width:45%;
}
#right {
    float:right;
}
#left {
    float:left;
}
Not actually tested BTW
So basically, to get the 3 outlined blocks I am seeking, you absolutely need to set the "foundation" first in HTML which is why you created the "right leg and left leg"? Is this correct? Also, does this mean that if you did not create that specific HTML code, that this could NOT be done using CSS alone?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-25-2009, 06:59 PM Re: Constructing webpage basics?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
CSS is merely a way of styling HTML, it cannot be used to create a document.

HTML is the Bricks, Woodwork and Plaster, CSS is the Paint, Wallpaper and Furnishing.

It doesn't HAVE to be that specific code or structure, that was simply plucked out of my head as a basic two equal column layout.
If I spent more than a couple of minutes setting out a layout for a two column (navigation down one side, content down the other) template the skeleton would be even more minimalistic.
eg:
wrapper element;
page header div;
a list structure for the nav
the content would then be either floated around the nav or in a separate container.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-25-2009, 07:35 PM Re: Constructing webpage basics?
Super Talker

Posts: 132
Trades: 0
Ok, appreciate the help, before I should move on to CSS, can you or anyone else give me a complex layout [ test] to construct so I can try it and see just how much I understand HTML please?
mikehende is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 03:25 AM Re: Constructing webpage basics?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Take a look at -> http://www.webmaster-talk.com/html-f...e-code-my.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Constructing webpage basics?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61776 seconds with 12 queries