Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Where to get more info

    I posted a question in Javascript forum regarding a javascript but then it happened that I need some .css. The question is some thing I have to display some information at the bottom of the page all the time no matter what resolution the user use. SOme one posted this answer:

    <style type="text/css">
    #footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    }
    </style>

    Here is my html code:
    <html>
    <head>
    <title>Untitled</title>
    </head>

    <body>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr><td valign="top"><img src="images/ev2tour.gif" border="0"></td></tr>
    <tr><td valign="top" height="4"><img src="images/sp.gif" border="0" height="4"></td></tr>
    <tr><td valign="top" colspan="3">
    <a CLASS="MBlack">Please </a><a CLASS="BLnk" href="javascript: window.open('tour/tour_databases.html','NewWindow','status=yes,resizable,scrollbars=1,menubar=yes,addressbar=1,width=7 00,height=500');void('');">click here</a> <a CLASS="MBlack"> for a demonstration of tour </a>
    </td></tr>
    </table>

    <!-- Footer -->
    <table border="0" height="24" width="99%" cellspacing="0" cellpadding="0">
    <tr><td bgcolor="#3173B5" valign="top" height="2" colspan="2"><img src="images/sp.gif" border="0" height="2"></td></tr>
    <tr><td bgcolor="#3173B5" align="left" valign="top" height="16" >&#160; &#160; <a CLASS="SWhite" href="home.html"target="home"><b>Home</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" href="mailto: my@me.com"><b>E-mail</b></a> <a CLASS="SWhite">|</a>&#160; <a CLASS="SWhite" href="javascript: window.open('privacy.html','NewWindow','status=yes,resizable,scrollbars=1,width=600,height=450');voi d('');"><b>Privacy Policy</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" <a CLASS="SWhite" href="sitemap.html" target="home"><b>Sitemap</b></a></td><td CLASS="Blubg" align="right" valign="top"><a CLASS="SWhite">Copyright &copy; 2004 </a></td></tr>
    <tr><td bgcolor="#3173B5" height="2" colspan="2"><img src="images/sp.gif" border="0" height="2"></td></tr>
    </table>
    </body>
    </html>


    I want the Footer section to be at the bottom of the page all the time. How do I do it with positioning?

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    If I remember correctly that CSS does not support what you want with it being static, but will support it in the future.

    You are going to have to use JavaScript with a watermark script.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not at all, it is possible, using one hack and some CSS:
    Code:
    #footer { position: fixed }
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yeah, also there is a sticky thread regarding new posts in this forum entitled "Read me first" which just happends to be the very same title as that big link next to the subject field when you post a new thread.

    You have violated the terms and conditions you agreed to on signing up by not conforming to the posting guidelines and as such I suggest you read them a few times over or consult them before posting a new thread to make sure this doesn't happen again...

    Of course, I am refering to your thread subject... How is "Where to get more info" going to help people browsing for info to find a thread? Or people browsing to help to help you if they don't know the subject of their head and they're just going to 'post and run'?? It is likely that an bad title will have an impact on the number of people who help you and the quality of those responses.

    I'm beginning to sound a bit like a broken record with this.
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •