Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 31st, 2006, 10: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 31st, 2006, 15:48
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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;
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 31st, 2006, 15:49
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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;
}
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 31st, 2006, 20: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 31st, 2006, 23:59
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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 17:17. Reason: Incorrect hyperlink
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Aug 1st, 2006, 15:06
minute44's Avatar
Most Reputable Member

SuperMember
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,361
Blog Entries: 3
Thanks: 0
Thanked 1 Time in 1 Post
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!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Aug 1st, 2006, 21: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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Aug 1st, 2006, 21: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Aug 1st, 2006, 21: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Aug 1st, 2006, 23:17
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Aug 2nd, 2006, 17:19
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with CSS

Link above has been inserted a new. See note.

Sorry for the hassle.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 07:01


All times are GMT. The time now is 09:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8