Experimenting with CSS

This is a discussion on "Experimenting with CSS" within the Web Page Design section. This forum, and the thread "Experimenting with CSS are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 31st, 2006, 09:00
New Member
Join Date: Jul 2006
Location: Warsaw, Poland
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Experimenting with CSS

Hello Everyone!

I'm new here and although I've experimented with CSS a little bit, I consider myself a total novice anyway because I simply don't have a "feel" for CSS. I read a few tutorials, bought two books on CSS (Both Eric Meyer's) and I've created one or two web pages which work, but they're definitely not up to standards.

Anyway, let me get down to the point here. I am currently working on my home page and I've come across a problem which I have difficulty solving. Please take a look at the following page: http://eljefe.cba.pl

I need "sitemast" on top, and that's fine. Then I want the menu on the left and the content to the right of the menu. That works fine as long as I set positioning of "content" to absolute. Should I just create a margin on the left side of "content" because it's right under the menu right now. What I was hoping is that CSS somehow sees the other div objects and I can set their position in reference to each other, but I am utterly confused.

Actually, everything was fine with the absolute positioning set - until I tried to add another <div> with the footer. The footer appeared under "sitemast" Any input would be greatly appreciated.

Thanks in advance.

Pawel
Reply With Quote

  #2 (permalink)  
Old Jul 31st, 2006, 14:48
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,604
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Experimenting with CSS

Assuming the menu is floated left then yes you would put a left margin on the content larger than the width of the left menu.

so if the left menu was 200px margin:0 0 0 210px;
__________________
I've got <style> and .class
Reply With Quote
  #3 (permalink)  
Old Jul 31st, 2006, 14:49
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,604
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Experimenting with CSS

Since your left menu is floating you need to put a clearing div right above the footer so it remains below the menu despite the height of the content.

something like

.clearing {
height:0;
clear:both;
}
__________________
I've got <style> and .class
Reply With Quote
  #4 (permalink)  
Old Jul 31st, 2006, 19:23
New Member
Join Date: Jul 2006
Location: Warsaw, Poland
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with CSS

Thanks a lot for your help. I fixed it up a bit. It still isn't what I'd like it to be, but it's always a step ahead.

I set the height of "content" to 100% due to the fact that if I hadn't done that then if there isn't enough content in there the footer jumps just below it but it's still not below the menu. Not sure if setting it to 100% is a good idea, but it'll do for now.

Thanks again.
Reply With Quote
  #5 (permalink)  
Old Jul 31st, 2006, 22:59
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Experimenting with CSS

Have a look at this template with explanation of what goes where and why that I put together a while back.

It makes a good starting point for any web site. You just take out any bits you don't need and adapt the others.

http://1ontheweb.net/downloads/Templates.zip

Curious editing issue. Although what you see on screen was correct, the underlying link that came up in the browser was not. This has now been corrected.

Last edited by ukgeoff; Aug 2nd, 2006 at 16:17. Reason: Incorrect hyperlink
Reply With Quote
  #6 (permalink)  
Old Aug 1st, 2006, 14:06
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
Re: Experimenting with CSS

Setting Heights in percentages can be tricky. It's best used on widths.

It is best to not set any figure for the heights and let the content dictate that.

Yeah!!!! 600th Post!!!!!
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #7 (permalink)  
Old Aug 1st, 2006, 20:42
New Member
Join Date: Jul 2006
Location: Warsaw, Poland
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with CSS

Thanks, I'm gonna download it and have a look. Sigh, wish I had more time!
Reply With Quote
  #8 (permalink)  
Old Aug 1st, 2006, 20:51
New Member
Join Date: Jul 2006
Location: Warsaw, Poland
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with CSS

Just replying quickly to let you know that you should change the extension of that file. I tried unzipping it several times and then thought that maybe it's just .html or .css so I opened it up in BBEdit and it worked.
Reply With Quote
  #9 (permalink)  
Old Aug 1st, 2006, 20:55
New Member
Join Date: Jul 2006
Location: Warsaw, Poland
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with CSS

Quote:
Originally Posted by ukgeoff View Post
Have a look at this template with explanation of what goes where and why that I put together a while back.

It makes a good starting point for any web site. You just take out any bits you don't need and adapt the others.

http://1ontheweb.net/downloads.Templates.zip
Okay, third reply. The .zip file is actually an .html file so no CSS template here. Think you could repost?

TIA
Reply With Quote
  #10 (permalink)  
Old Aug 1st, 2006, 22:17
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Experimenting with CSS

Try the link again. There was a '.' where a '/' should have been so I'm not sure what you got but it certainly wasn't what I intended.

The zip file contains 8 files. 1 .html, 2 .css, several .inc and an explanation in pdf.
Reply With Quote
  #11 (permalink)  
Old Aug 2nd, 2006, 16:19
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Experimenting with CSS

Link above has been inserted a new. See note.

Sorry for the hassle.
Reply With Quote
Reply

Tags
experimenting, css

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Experimenting with SVG instead of PNG Aleksandersen Web Page Design 2 Feb 19th, 2007 06:01


All times are GMT. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43