Jump to content


Photo
- - - - -

Fixed Header And Sidebar


Best Answer Danny , 30 November 2012 - 01:48 PM

Hi,

 

This can be done with custom CSS, you will need to target your head using this:

 

 

 
#header { }

 

 

Then add your CSS properties, for a fixed element, you will need to use position:fixed. I recommend you visit W3Schools - http://www.w3schools.com/css/

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 30 November 2012 - 01:16 PM

Hello,

 

I would like to have a fixed header (logo on top-left) and a fixed sidebar of my menu, while i'm scrolling the page.

Is it possible ?

 

thank you,

Yannick



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16289 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 30 November 2012 - 01:48 PM   Best Answer

Hi,

 

This can be done with custom CSS, you will need to target your head using this:

 

 

Please Login or Register to see this Hidden Content

 

 

Then add your CSS properties, for a fixed element, you will need to use position:fixed. I recommend you visit W3Schools - 

Please Login or Register to see this Hidden Content



#3 yannick

yannick

    Member

  • Members
  • 14 posts
  • Country: Country Flag

Posted 30 November 2012 - 01:58 PM

Thank you Danny.

 

It works perfectly with the custom css, kind of :

#header { position: fixed; }
#sidebar1 { position: fixed; }
 

Best regards,

Yannick

 

I have another question, but I'm gonna create a new topic.