Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

How To Do A Webpage Layout


5 replies to this topic

#1 demo100

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Montreal
  • myCENT:76.77

Posted 29 March 2010 - 08:17 PM

I am teaching myself how to create a webpage. I find this very fun and learning alot. But now I find myself in a particular spot where I can solve the issue in many different ways, but am not sure which is the best to proceed.


I am creating the webpage, but find mysefl not sure how to create the webpage layout. I can do it by placing raw HTML data, and create a table on each page, although I don;t think this is the best way to do this. I also been looking at frameset, and iframe, although I find that this requires alot of coding on each individual page.


What I Would like to know really is this possible to use CSS to create the frame layout of the page. as a template. If this is possible, could some one get me a link to a site or an example that I could use to learn from.


Right now most of my learning been right off teh W3school website, been great, but not to clear on this issue which way is best to proceed.


Thanks for any help ;)

#2 web_designer

    "french rose sparkle under moonlight"...do you believe in the magic of moonlight??!!...

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,385 posts
  • Gender:Female
  • Location:US, CA
  • Interests:internet and the web
    reading books
    sport
    watching tv series
    drawings and art
  • myCENT:12.10
  • Spam Patrol

Posted 29 March 2010 - 10:11 PM

i am not quite sure of what you are asking for. but if you want to know if we can make CSS to add a frame to the whole page, then yes. you should use the BOX idea. in fact CSS stands on the idea of BOXES. you can add small box or big box that contain the whole page. by using BOX model you can set different values to margin, padding, and border. this is a link to show you how it looks like

http://www.w3schools...ss_boxmodel.asp

the main idea is creating a normal div and put all your site code inside it. that way you can make something similar to table but in CSS. keep in mind two things: CSS is always more effective than tables, when you use a div to wrap your entire page set it to id not class. good luck.

#3 kleong

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 509 posts

Posted 30 March 2010 - 04:30 AM

For me, I will use photoshop to conceptualize and the layout the page. Where should what goes and how much space allocated to it. Once I am satisfied with it, I will proceed to slice it into html, either through tables or css. As far as possible, I will try to stay away from iframe or frameset.

#4 demo100

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Montreal
  • myCENT:76.77

Posted 30 March 2010 - 12:16 PM

Thanks for yoru help bu tI was able to figure out much better way to this then table and with CSS which is what I was looking for ;) Since I am new at this please forgive me if my questions sound newbish, an denglish is not my first language to sometimes what I type makes little sense :P

But the code I was looking for in CSS was flaot and with it I was able to create, header, right, left and center colum with all different properties. This allowed me to create a header that took 100% of the top of the page width, and then the body to be split into 3 collums :P although thanks for all the help. I;m sure that more questions will come soon :D

#5 nirvaman

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 210 posts
  • Gender:Male
  • Location:Localhost
  • myCENT:12.94

Posted 30 March 2010 - 02:45 PM

An advice for you demo100 , if you want to improve your knowledge very quickly , i suggest you to find some free web templates , you can find tons of them on the net , just use google.
Then you will see how people coded it , and learn , you can of course use some advanced tools like adobe photoshop and dreamweaver , but since you are just learning , then you can use some free tools , and start modifying this templates , and you will learn more then you will do , if you stuck with the tutorials.
Good luck

#6 gisellebebegirl

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 468 posts
  • Gender:Female
  • Location:a beach, in California
  • myCENT:6.66

Posted 01 April 2010 - 03:41 AM

Well props to you for trying to do things the "legit" website creating and coding school website way
but i think what i find easier (this is how i learned to code websites) is stealing a template or a website that you like, steal an easy one that somewhat has the layout you like, and from there rearrange and delete and add codes until you learn what each element of the code does..

That again is how i learned.. i know what the css files do etc, how to include something into websites (which is somewhat easier) but what i do to setup my websites is just do a ph include of the header.php file (i put everything i want to be displayed on all pages of my website into there, even the css raw, without doing an actual css include code)

I personately think that is the best way to learn.. because it is more hands down, and you learn by making mistakes.. but whatever floats your boat!




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users