This is a discussion on "New to CSS Layout" within the Web Page Design section. This forum, and the thread "New to CSS Layout are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
New to CSS Layout
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
New to CSS Layout
Hi all
I'm new to both this site and CSS layouts. I have basic knowledge of CSS having used it for text styles within tables etc for years. I am trying to broaden my knowledge. I would like to know whether this style of layout is possible to be created purely with <div> etc. I am aware that the content from the DB will need to be in tables. http://www.notionsforpotions.co.uk/t...eideaframe.jpg I have created a nav bar using unordered list and have styled it. I am however having problems in positioning it. Wherever I place it, it always displays about 10px south of where it should be. Is this a common problem with this style of navagation, and if so, is there an easy fix. Here's the code I have used; (taken and edited form listmatic)
Its an informative book, but if anyone is aware of a good book to help self teach me this skill, I would be very appreciative. Best regards Tapster |
|
|
|
||||
|
Re: New to CSS Layout
try putting
* {margin: 0px; padding: 0px} at the top of your stylesheet
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: New to CSS Layout
better yet host (freewebs if you don't have a host)
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: New to CSS Layout
Why are you using position: absolute on your navbar <ul>?
Last edited by MikeHopley; Oct 2nd, 2007 at 17:46. |
|
|||
|
Re: New to CSS Layout
Flipping heck this is a fast site. !!!
http://www.notionsforpotions.co.uk/testers There is a link to what I have done so far. Please don't laugh at my feable attempt.!!! |
|
||||
|
Re: New to CSS Layout
Quote:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: New to CSS Layout
First of all ... this is a 2-column site so ... what I would do is create 2 ID: col1 and col2
#col1 would have those 2 boxes #col2 would house your navigation and your content just float col1 to left and col2 to right |
|
|||
|
Re: New to CSS Layout
Thanks
As you can see, I have having a little trouble positioning the nav bar. |
|
||||
|
Re: New to CSS Layout
Oh and you're also missing a </ul> in there
|
|
|||
|
Re: New to CSS Layout
Thanks for that. I will see how I get on with a 2 column layout.
It certainly makes sense to do it like that. Is that the only way to be able to layout with CSS? Does it have to be something that will always fit in columns? Its probably obvious when I switch my brain on and think about it but its getting late now :bounce8: Thanks again for all your replies. |
|
||||
|
Re: New to CSS Layout
No ... a layout doesn't "have" to be in columns.
Just look at the styles applied at the CSS Zen Garden There's all types of layouts. Just thought that telling you to use 2 columns might be more obvious and simpler |
|
|||
|
Re: New to CSS Layout
Thanks. Yeah I have seen that site before. I will take another look and more notice of how things are laid out in future
|
|
|||
|
Re: New to CSS Layout
You can view my 2-column layout tutorial here:
http://lynx.tygerz.com/layouts_03.php Also are tutorials for one-column with horizontal menu and a three column layout (kind of a hack, but it works and keeps the colors in the left and right columns all the way to the bottom even if the center column is longer). I have made webpages for clients using this 2 column layout and they are very happy with the results: One client's site: http://richardhackworth.com I hope this helps with your 2 column layout. All the Best, CP |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS layout | casho | Web Page Design | 4 | Feb 10th, 2008 13:59 |
| Layout using CSS | Madball | Web Page Design | 5 | Nov 7th, 2007 09:41 |
| please help on css layout | geyids | Web Page Design | 12 | Aug 18th, 2007 17:06 |
| Fluid layout - IE6 clichés the layout when resizing | cyberseed | Web Page Design | 7 | Jun 16th, 2007 05:14 |
| What makes a layout a good layout? | Miles Lombardi | Graphics and 3D | 4 | Jul 26th, 2005 03:22 |