Web Page Layouts - using Cascading Style Sheets

free web hosting
Open Discussion > CONTRIBUTE > Tutorials

Web Page Layouts - using Cascading Style Sheets

jlhaslip
Here are a set of three Web pages I wrote a long time back when I was first starting to develop sites.
The first one is a two columned page with a full length sidebar for navigation links.
There are two that are identical except the sidebar positions are reversed.
Another is "one way" to create a three column layout.
And lastly, a 'framed' look on a page.

These are not 'fancy', you will need to look into the code and colourize it to suit, maybe set a width and centre it if you want, whatever...

Please feel free to snag the source and develop the pages into something you need. The only cost is please pass on the information to assist others as they need assistance on the Forum.

Full height sidebar

Left sidebar - full percentage width

Right sidebar - full percentage width

Three Column

Framed, single column

Should you have any questions about these layouts, or need help in Modding them to suit your particular design, please post a new Topic in the Cascading Style Sheet Sub-forum in the Programming Forum.

Thanks, and you are welcome. biggrin.gif

 

 

 


Reply

jlhaslip
QUOTE
bump. no credits here

Reply

willielwgg
QUOTE
This tutorial is good, I'm going to bump it also

Reply

innosia
I am quite confuse with design

I want to ask a question if you can help....

When designing, do you prefer the web to have a fix width or a flexible width? I notice some site uses 80% of the width relative to the screen then it center the page, while the left 10% and right 10% which makes the site looks quite good. Do you have any idea how to css design that? And this is good since when they open with 800x600 or 1024x768 or even 1280x800 (widescreen) all look good, there is a space at left and right, while the center is flexible to the screen! Teach me how to design like that using CSS

And one more question, if the design is so flexible, how do we put an image, I mean an image must be estimated so that it won't overrun the 100% width on a small resolution, so which resolution do you pick with to have a largest image width? This surely to prevent horizontal scroll

Reply

gold_standard
QUOTE(innosia @ Oct 10 2008, 08:22 AM) *
I am quite confuse with design

I want to ask a question if you can help....

When designing, do you prefer the web to have a fix width or a flexible width? I notice some site uses 80% of the width relative to the screen then it center the page, while the left 10% and right 10% which makes the site looks quite good. Do you have any idea how to css design that? And this is good since when they open with 800x600 or 1024x768 or even 1280x800 (widescreen) all look good, there is a space at left and right, while the center is flexible to the screen! Teach me how to design like that using CSS

And one more question, if the design is so flexible, how do we put an image, I mean an image must be estimated so that it won't overrun the 100% width on a small resolution, so which resolution do you pick with to have a largest image width? This surely to prevent horizontal scroll




Wow your site looks great! I am just staring to learn PHP, as my language is Java. It may seem like a daft question, but isn't it possible to get the dimensions of the screen from the browser, and then present the web page layout according to the space available?

 

 

 


Reply

innosia
QUOTE(gold_standard @ Oct 10 2008, 10:25 AM) *
Wow your site looks great! I am just staring to learn PHP, as my language is Java. It may seem like a daft question, but isn't it possible to get the dimensions of the screen from the browser, and then present the web page layout according to the space available?


Thanks, hehe sign the guest book please...

woah i never try to get the dimensions of the screen from browser (i think it must need javascript to do the post back or redirect after knowing the width? Is this is true then it might not good for search engine and well interface), I prefer using percentage in css but still learning it, my current site is used fix 800 px for optimize view for 800x600 screen with IE 7 and mozila firefox (lower version of IE might have a bit not nice things showing in my website).

where are you learning php from? www.php.net might have good resource about php and include a chm file for explaining any functions of php. but i think a book about desigining php and optimizing classes design is good, any idea? I still need to learn too to improve my site.

Reply

jlhaslip
QUOTE
isn't it possible to get the dimensions of the screen from the browser, and then present the web page layout according to the space available?

javascript is able to do this. I don't have a script for that, or I would share it. Try w3schools.com. They have a decent javascript tutorial system.

Lately, I have been designing sites for the 1024 width by setting widths to around 990px wide, using margin: 0 auto on the body and a background colour to suit the style. Sometimes I will use the same colour as the content for the body, other times a different colour. If I have a chance, I will create a sample to post up here.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : web, page, layouts, cascading, style, sheets

  1. Fruity Loops Tutorials-trance Style Songs
    How to create and use a profesional trance style bass mellody (11)
  2. Nice Clean Php Layout Coding.
    Learn a nice neat way to code your layouts with php (7)
    There are basically two main ways to code your php. Method 1) Creating a php document with an html
    look. The you throw in include tags all over the place. Its unorganized, and you have lots of stray
    files hidden in folders and scattered in your base directory. Its difficult to organize, and you
    make mistakes easily. Example: This document would be called index.php Whatever
    Banner or something Some content here. Mostly along the lines of You might ask what
    the problem was? Well, those include tags tend to multiply, and so do all those unne....
  3. How To Make Bubble Shaped Layouts
    (8)
    1. Open your layout and make a new document, the same size of your layout. If you don't know
    what size it is, click your layout and go to Image >> Canvas Size. It should show you the Dimensions
    like this: 2. Where it says Current width and height make your new document the same pixels it
    says. Then cancel the Canvas Size. After that, click the Brushes tool and go to your color palette
    and choose Pattern. Say this was my layout: 3. Double click the pattern icon in the color
    palette. Find your layout and click on it. After that find the Tool Options and s....
  4. The Art Of Xhtml, Css And Web Standards - Part 1
    The Markup and Style Guidebook (19)
    Being the XHTML and CSS freak that I am, I have decided to create a guidebook on developing
    websites using XHTML, CSS and implementing Web STandards. While this is not a step by step tutorial
    on making websites, and nor is it a beginners guide to CSS and XHTML, this is a handbook where you
    can learn from other website examples, and grab insight from my own opinions, and then implement it
    onto your own website. This guidebook is divided into three chapters, each covering a different
    aspect of XHTML, CSS, and Web Standards. With out further ado, here starts Chapte....
  5. Simple Layouts
    (14)
    New to HTML? try this simple website layout to get you started. Well, start your site by creating a
    table to display your content. HTML html > head > title > My Webpage /title > STYLE
    type=text/css > <!-- @import url( yourname.css ); --> /STYLE > /head > body
    > table width =" 700 " border=" 1 " cellpadding=" 3 " cellspacing=" 0 " align=" center " class="
    MAIN_TABLE "> tr > td valign =" top " height=" 100 " colspan=" 2 " class=" CELL "> Your
    banner /td > /tr > tr > td width =" 15% " valign=" top " height=" 25 " class=....

    1. Looking for web, page, layouts, cascading, style, sheets

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for web, page, layouts, cascading, style, sheets

*MORE FROM TRAP17.COM*
advertisement



Web Page Layouts - using Cascading Style Sheets



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE