Beginner CSS website

This is a discussion on "Beginner CSS website" within the Web Page Design section. This forum, and the thread "Beginner CSS website 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 Aug 22nd, 2006, 09:03
Nyk Nyk is offline
Junior Member
Join Date: Jul 2006
Location: GA
Age: 23
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Beginner CSS website

I'm hoping that someone might be able to point me in the right direction regarding my test website.
www.tankshock.com/nyk/

I am trying to get the black footer at the bottom to always stay at the bottom of the page when resizing the browser window, unless you resize it to a smaller size than the content, where the footer will stay at the bottom of the content. (I don't know if I explained that clearly).

I got it to work, kind of, by putting all the content in a wrapper with a spacer and footer div above it set at 95% height for the spacer and 5% for the footer, but it caused the 2 border edges to disappear.

Which brings up another point; is there a better way to make a repeating border down the edges of the main content than how I did it?

I appreciate any advice, because I'm a complete CSS newb!
Reply With Quote

  #2 (permalink)  
Old Aug 22nd, 2006, 10:34
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: Beginner CSS website

For your borders, try using a single image as the background image for the container div and setting the repeat attributes.

Move your header and footer divs to be above and below the middle div respectively.
Reply With Quote
  #3 (permalink)  
Old Aug 24th, 2006, 08:01
oya oya is offline
New Member
Join Date: Aug 2006
Location: Missouri
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Beginner CSS website

<div style="position: absolute; bottom: 0px;">

Or something like this, I think....
Reply With Quote
  #4 (permalink)  
Old Aug 24th, 2006, 09:46
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: Beginner CSS website

Quote:
Originally Posted by oya View Post
<div style="position: absolute; bottom: 0px;">

Or something like this, I think....
That doesn't work... I tried it when I was first starting out and to my dismay it failed miserably.

I emailed a friend of mine who runs www.makehay.co.uk and asked him if it was possible to do this.

here was his reply:

Quote:
It isn't you, it isn't stupid. Annoyingly it's almost impossible....

The almost bit is because you can do this BUT you need to involve Javascript
to get the layer to expand.

Check this page of mine:

http://www.makehay.co.uk/webs/sesc/

You should see the effect there, this is a tricky combo of Javascript and
CSS. What you are trying to do is almost (as far as I know) impossible to
achieve using CSS alone.

This is most likely why your posts have gone unanswered.

Have you tried:

www.sitepoint.com
www.communitymx.com

might be worth a shot
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 25th, 2006, 10:06
Nyk Nyk is offline
Junior Member
Join Date: Jul 2006
Location: GA
Age: 23
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Beginner CSS website

Quote:
Originally Posted by ukgeoff View Post
For your borders, try using a single image as the background image for the container div and setting the repeat attributes.
Alright, good. I think what's what I did and, and set the vertical height of the divs to 100%. It seems to work pretty well. Except (in Firefox at least) there seems to be a glitch where when I manually resize the window smaller and then scrolldown, the borders disappear towards the bottom.

Quote:
Originally Posted by minute44 View Post
That doesn't work... I tried it when I was first starting out and to my dismay it failed miserably.

I emailed a friend of mine who runs www.makehay.co.uk and asked him if it was possible to do this.
I tried that as well and it didn't seem to work. I think you're right, minute, it seems extremely difficult to pull off with pure CSS. I looked all over the place and couldn't find a way. The only way seems to be if the conent and consequently footer are taller than the browser window, so that it stops when you scroll to the bottom. Predicting how the Divs will react to each other is baffling to me, I have to get used to that.

Thanks for the help, I'm sure I'll be back with plenty more questions.

By the way, I like the alternating signature quote, minute44.
Reply With Quote
  #6 (permalink)  
Old Aug 25th, 2006, 10:08
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: Beginner CSS website

Yeah man, you a NoFX fan?
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #7 (permalink)  
Old Aug 26th, 2006, 03:24
Nyk Nyk is offline
Junior Member
Join Date: Jul 2006
Location: GA
Age: 23
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Beginner CSS website

Quote:
Originally Posted by minute44 View Post
Yeah man, you a NoFX fan?

Sure am! I think we talked about it briefly weeks ago? I've only posted on these forums once before, so I'm not even sure. Anyway, always good to see a fellow fan.
Reply With Quote
  #8 (permalink)  
Old Aug 26th, 2006, 16:23
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: Beginner CSS website

Oh yeah, I remember you now.

cool
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #9 (permalink)  
Old Aug 27th, 2006, 11:13
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Beginner CSS website

It's possible in browsers that support the min-height class, but as IE doesn't, it's kind of pointless.
Reply With Quote
  #10 (permalink)  
Old Aug 27th, 2006, 11:24
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Beginner CSS website

I had a faint flicker of hope when this idea flashed into my head, but sadly, it didn't work without the min-height class. Anyone want to help me take this further? We could be on to a major CSS discovery!

Code: Select all
<style type="text/css">
    html, body {
        min-height: 100%;
    }
    body {
        position: absolute;
        margin: 0;
    }
    #footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 40px;
        background-color: #000;
    }
</style>
The above should work in all modern browsers. It handles as intended in Safari and Firefox for sure.
Reply With Quote
  #11 (permalink)  
Old Aug 28th, 2006, 15:33
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Beginner CSS website

Sticking a footer at the bottom is tricky at best. Read this for some techniques.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #12 (permalink)  
Old Aug 28th, 2006, 16:13
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Beginner CSS website

Nice example! I had no idea that was even possible. That one's now in my bookmarks.
Reply With Quote
Reply

Tags
beginner, css, website

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
beginner help djthompson Starting Out 7 Apr 10th, 2007 09:55
hi a beginner to css jackfusion Introduce Yourself 2 Apr 21st, 2006 10:50
ASP Beginner siaoa84 Classic ASP 4 Nov 2nd, 2003 00:38


All times are GMT. The time now is 16:39.


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