close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I create sticky footers (one that always stays at the bottom of the browser)

Thread began 2/09/2010 10:10 pm by mrs | Last modified 2/10/2010 1:34 pm by Jimmy Wu | 1075 views | 1 replies |

mrs

How do I create sticky footers (one that always stays at the bottom of the browser)

I would like to create a sticky footer for a site I have in mind, but I am not sure if CSS Sculptor has the ability to do it.

Just to clarify what I mean by sticky footer... It would be a div that no matter how long or short the page content is, the footer div will always stick to the bottom of the browser window and never move even when scrolling; it will also remain on top of any content that is scrolling underneath it.

In fact, it would be useful to know how to create sticky headers and side bars too.

How can I acheive this in CSS Sculptor?

Thanks

Mat

Sign in to reply to this post

Jimmy Wu

Unfortunately this is not a feature that is part of the features of CSS Sculptor, but you can modify the css fairly easily to get this working. You will have to set the position attribute on the header/footer to get it to stick. So in the screen.css file, find the css section that ends with #header. For example:
#outerWrapper #header {
background-color: #a8a2d1;
border-bottom: solid 1px #656586; /* Sets the bottom border properties for an element using shorthand notation */
font-size: 18px;
font-weight: bold;
line-height: 15px;
padding: 10px 10px 10px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
}

You will have to add position:fixed; into that block so for my example it will look something like this:
#outerWrapper #header {
background-color: #a8a2d1;
border-bottom: solid 1px #656586; /* Sets the bottom border properties for an element using shorthand notation */
font-size: 18px;
font-weight: bold;
line-height: 15px;
padding: 10px 10px 10px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
position:fixed;
}

For the footer, you will find the block of css labeled with an ending #footer and you will have to add both the position:fixed; and bottom:0;

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...