Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Certification Forums > CIW Certifications
Home Forums Register Search Today's Posts Mark Forums Read

Css basic question

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 18-Feb-2008, 01:12 PM
IThurts's Avatar
IThurts IThurts is offline
Valued Member
Posts: 282
Points: 189 IThurts has over 100 pointsIThurts has over 100 points
Power: 4
None
Join Date: 11 Feb 2008
Location: UK,Middlesex
Age: 23
Certifications: BTEC national Diploma Computer Studies
WIP: See Sig
Css basic question

Two questions i would like clarification on if you would please:

1)Would i be right in saying that in order to create different "sections" of a webpage using CSS, ie; its links section on the left and the main content in the middle, i would have to use <DIV> tags (blocked elements) in order to seperate the two.

2)The last time i did websites/webpages, tables were used for this, so CSS is very new to me. I would use the tables to seperate the different sections of a page. As i understand it from this thread and other sources, CSS are used to create a page layout and its various sections, which pose great advantages. ie; the ability to use external style sheets to edit your style and apply/link this .css page to your html pages to change the layout in its entirety.

Thanks alot for the help in advance and please keep the answers in "dummy" terms please


Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.

Secondary Goal: CIW foundation course exam 1D0-510

BOLD indicates now studying...


Note whilst studying, i will create a portfolio of my learnings. See below


amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
 
Reply With Quote
  #2  
Old 18-Feb-2008, 02:11 PM
tripwire45's Avatar
tripwire45 tripwire45 is offline
Administrator
Posts: 12,905
Points: 3046 tripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 points
Power: 169
None
Join Date: 29 Jun 2003
Location: Boise, ID, USA
Age: 53
Certifications: A+ and Network+
WIP: Job and Career
That's how I did it on my site. I have my pages (in general) structured with a left navigational section, a main content section and a right content section (on my main page, it's graphics of my books). Go to http://www.wiredwriter.net/, right-click on the page and select View Page Source (in Firefox) or or View Source (Internet Explorer). Then compare the page to the source to see how the <div> tags are used.

One of the best ways to learn CSS is to find web pages that are organized in the way you like or want to learn about and then use the "view page source" option to see how the page is organized. You can also Google "css layout" to find tutorials on how to use CSS to organize pages. When I want to create a site with a certain "look", I do this sort of search until I find something that approximates what I want, then I tweak the CSS until I get the effect I'm looking for.

You are right in your understanding of the advantages of using CSS. Using an external style sheet lets you edit the style of your entire site (assuming that all the pages on your site use the same style sheet) in one fell stroke. Using tables means you have to edit each page individually which is a pain-in-the-arse, especially if you have a rather large site. Also, using tables, you could lose conformity by making mistakes from one set of tables on a single web page to the next.

Hope this helps.

-Trip


"That detective, is the right question. Program terminated".
 
Reply With Quote
  #3  
Old 18-Feb-2008, 02:56 PM
BosonJosh's Avatar
BosonJosh BosonJosh is offline
Valued Member
Posts: 315
Points: 519 BosonJosh has over 500 pointsBosonJosh has over 500 pointsBosonJosh has over 500 pointsBosonJosh has over 500 pointsBosonJosh has over 500 pointsBosonJosh has over 500 points
Power: 10
None
Join Date: 01 Aug 2007
Location: Near Nashville
As Trip said, your understanding is correct. However, one thing you have to be careful about is using DIVs for every little piece of content you want to style. Using CSS requires a bit of planning and thinking through the layout before actually writing any code. But, a well thought out CSS layout is much easier to maintain than a table-based layout.


Water is just coffee in waiting.
 
Reply With Quote
  #4  
Old 18-Feb-2008, 04:02 PM
IThurts's Avatar
IThurts IThurts is offline
Valued Member
Posts: 282
Points: 189 IThurts has over 100 pointsIThurts has over 100 points
Power: 4
None
Join Date: 11 Feb 2008
Location: UK,Middlesex
Age: 23
Certifications: BTEC national Diploma Computer Studies
WIP: See Sig
Question

Quote:
Originally Posted by tripwire45 View Post
That's how I did it on my site. I have my pages (in general) structured with a left navigational section, a main content section and a right content section (on my main page, it's graphics of my books). Go to http://www.wiredwriter.net/, right-click on the page and select View Page Source (in Firefox) or or View Source (Internet Explorer). Then compare the page to the source to see how the <div> tags are used.

One of the best ways to learn CSS is to find web pages that are organized in the way you like or want to learn about and then use the "view page source" option to see how the page is organized. You can also Google "css layout" to find tutorials on how to use CSS to organize pages. When I want to create a site with a certain "look", I do this sort of search until I find something that approximates what I want, then I tweak the CSS until I get the effect I'm looking for.

You are right in your understanding of the advantages of using CSS. Using an external style sheet lets you edit the style of your entire site (assuming that all the pages on your site use the same style sheet) in one fell stroke. Using tables means you have to edit each page individually which is a pain-in-the-arse, especially if you have a rather large site. Also, using tables, you could lose conformity by making mistakes from one set of tables on a single web page to the next.

Hope this helps.

-Trip
Thanks Trip,
I have viewed your source code...its not as scary as i first though it may be ;)

If its not too much trouble, do you mind explaining, for example, your "<DIV id=leftnav>" element (is that an element??)...is the positioning (and code) of this nav bar and its alignement stated in your Css style sheet? I cant see anywhere where you have set up the alignment attributes are on your home page.

Im just trying to get an understanding of how it all works, so would like to know how you have "told" the html file to align the leftnav to where it is. Thanks for your help....or if anyone can help at that matter as im sure the issue and answer is a universal one.

Thanks guys...your great help.


Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.

Secondary Goal: CIW foundation course exam 1D0-510

BOLD indicates now studying...


Note whilst studying, i will create a portfolio of my learnings. See below


amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
 
Reply With Quote
  #5  
Old 18-Feb-2008, 05:27 PM
ThomasMc's Avatar
ThomasMc ThomasMc is offline
Valued Member
Posts: 490
Points: 597 ThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 pointsThomasMc has over 500 points
Power: 12
None
Join Date: 04 Dec 2006
Location: Glasgow
Certifications: MCDST
WIP: MCSA (70-270), CCNA, CCNP
Hi ITHurts, if your just starting out with css you may want to have a look at W3Schools [Link], I found there css section to be a very worth while resource





Last edited by ThomasMc : 18-Feb-2008 at 05:55 PM. Reason: misleading
 
Reply With Quote
  #6  
Old 18-Feb-2008, 05:46 PM
Mitzs's Avatar
Mitzs Mitzs is offline CertForums News Posting Member
Ducktape Goddess
Posts: 3,045
Points: 2165 Mitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 pointsMitzs has over 2000 points
Power: 57
None
Join Date: 11 Apr 2005
Location: Tenneesse USA
Certifications: Microcomputers and network specialist.
WIP: Adobe DW, PS
Quote:
Originally Posted by IThurts View Post
Thanks Trip,
I have viewed your source code...its not as scary as i first though it may be ;)

If its not too much trouble, do you mind explaining, for example, your "<DIV id=leftnav>" element (is that an element??)...is the positioning (and code) of this nav bar and its alignement stated in your Css style sheet? I cant see anywhere where you have set up the alignment attributes are on your home page.

Im just trying to get an understanding of how it all works, so would like to know how you have "told" the html file to align the leftnav to where it is. Thanks for your help....or if anyone can help at that matter as im sure the issue and answer is a universal one.

Thanks guys...your great help.
It, yes it is an element. However align has become obsolete with html 4. I would suggest that you start to google for some of your anwsers you would get a faster response. Google the tags you don't understand. Or if you read some of the links that have been posted in both of your thread you would find them very helpfully and will anwser alot of these questions you are asking. Your just going to have to take the time if you are really serious about learning this.


“We do not remember days, we remember moments.” Cesare Pavese

Twitter: http://www.twitter.com/mitzs

Last edited by Mitzs : 18-Feb-2008 at 05:48 PM.
 
Reply With Quote
  #7  
Old 18-Feb-2008, 05:58 PM
tripwire45's Avatar
tripwire45 tripwire45 is offline
Administrator
Posts: 12,905
Points: 3046 tripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 pointstripwire45 has over 3000 points
Power: 169
None
Join Date: 29 Jun 2003
Location: Boise, ID, USA
Age: 53
Certifications: A+ and Network+
WIP: Job and Career
Quote:
Originally Posted by IThurts View Post
If its not too much trouble, do you mind explaining, for example, your "<DIV id=leftnav>" element (is that an element??)...is the positioning (and code) of this nav bar and its alignement stated in your Css style sheet? I cant see anywhere where you have set up the alignment attributes are on your home page.

Im just trying to get an understanding of how it all works, so would like to know how you have "told" the html file to align the leftnav to where it is. Thanks for your help....or if anyone can help at that matter as im sure the issue and answer is a universal one.
No worries. If you look towards the top of the source, you'll see how the page is linked to the CSS style sheet as follows:

<link type="text/css" rel="stylesheet" href="wired02.css">

If you look around, you'll also see some local styling as well that applies only to that page, but what you are looking for is in "wired02.css". I'm attaching it to this post. Since the attachments feature on the boards doesn't support the .css extension, I renamed it wired02.txt. The content is the same, so no worries there.
Attached Files
File Type: txt wired02.txt (1.8 KB, 3 views)


"That detective, is the right question. Program terminated".
 
Reply With Quote
  #8  
Old 18-Feb-2008, 07:06 PM
IThurts's Avatar
IThurts IThurts is offline
Valued Member
Posts: 282
Points: 189 IThurts has over 100 pointsIThurts has over 100 points
Power: 4
None
Join Date: 11 Feb 2008
Location: UK,Middlesex
Age: 23
Certifications: BTEC national Diploma Computer Studies
WIP: See Sig
Quote:
Originally Posted by tripwire45 View Post
No worries. If you look towards the top of the source, you'll see how the page is linked to the CSS style sheet as follows:

<link type="text/css" rel="stylesheet" href="wired02.css">

If you look around, you'll also see some local styling as well that applies only to that page, but what you are looking for is in "wired02.css". I'm attaching it to this post. Since the attachments feature on the boards doesn't support the .css extension, I renamed it wired02.txt. The content is the same, so no worries there.
right. Thank you so much trip, will give you thos rp points shortly. So i was correct..? The declaration of your "alignments" WERE indeed in your style sheet, and in your html doc you have simply "pointed" to those "unique names" and the style sheet has done the hard work so to speak. (i should really learn the terminology!)

Thanks for taking the time to help me out, it makes a huge difference for someone to take the time to explain it all. google Links are great and all and gratefully received, but there's nothing like someone understanding your issue and helping you directly.


Primary Goal: XHTML, CSS, Javascript, Using Photoshop.Using Dreamweaver.

Secondary Goal: CIW foundation course exam 1D0-510

BOLD indicates now studying...


Note whilst studying, i will create a portfolio of my learnings. See below


amr-portfolio - MY WEB DESIGN/DEVELOPMENT PORTFOLIO -WIP - please excuse the annoying pop-ups...its not my fault!!! Its the free webhost im using!Migrating shortly
 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Certification Forums > CIW Certifications


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CIW foundation basic question IThurts CIW Certifications 62 06-Apr-2008 09:31 AM
HTML and CSS Basics Tutorial in Adobe Dreamweaver Mitzs Web Design & Graphics 0 17-Oct-2007 05:53 AM
Book Review: HTML Dog: The Best-Practice Guide to XHTML and CSS tripwire45 Reviews 6 13-Feb-2007 01:57 PM
Basic Question regarding Sub-interfaces NetEyeBall General 1 05-Jan-2007 02:21 AM
Transcending CSS: The Fine Art of Web Design tripwire45 Reviews 0 26-Dec-2006 10:35 PM


All times are GMT. The time now is 10:34 PM.

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages