Less free space above menu

Home Forums Older releases 0.9.x Less free space above menu

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1365
    Chris
    Participant

    Hi,
    there is a lot of free (unused) space above the smartmenu. Is it possible to move the whole menu up? I’m not an expert in CSS nor Javascript so any help would be appreciated.
    Thanks
    Chris

    #1656
    admin
    Keymaster

    Hi,

    Not sure about the exact page layout where you are using the script but on the default demo page the space above the menu is controlled via the BODY element’s padding – i.e. the following rule in “libs/demo-assets/demo.css”:

    body {
    	...
    	padding:2em;
    	...
    }

    You could tweak it as you like as per the spec:

    http://www.w3.org/TR/CSS21/box.html#padding-properties

    For example, the following would give you none top padding but will keep the BODY right/bottom/left padding:

    body {
    	...
    	padding:0 2em 2em 2em;
    	...
    }

    Cheers!

    #1657
    Chris
    Participant

    Thanks – works perfectly!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?