sistabro: (stilts)
sistabro ([personal profile] sistabro) wrote in [community profile] dreamwidthlayouts2011-06-25 10:11 pm

Code Snippet: CSS to add fixed page navigation to Blanket

Title: CSS for fixed page navigation in Blanket
Credit to: [personal profile] sistabro
Base style: Blanket
Type: Code Snippet
Best resolution: Fluid Width
Tested in: IE9, Chrome, Firefox5 on a PC. Safari 5.0.4 courtesy of [staff profile] denise
Features: Fixed Previous, Next and Top of Page links

I posted a layout today, Wavy Gravy, and one of the features in it was adding the Previous, Next and Top of Page links to the fixed navigation section at the bottom of every Blanket based layout. It seems like it would be something very useful for anyone messing around with Blanket; I honestly can't think of a reason why you wouldn't want to add these links to the navigation section. So below you can find the CSS that sets all of that up.



Now, I will be the first to admit that I am a complete n00b at CSS, so the code is probably messy, but it does work. The only thing is that it's really sensetive to font size changes. If you change the font sizes, you will also have to adjust the padding and positioning of pretty much everything to make things line up. But once they are aligned, it responds quite well to in browser zooming; it only breaks if your main navigation links get so big they go to another line, which is really, really big.

Feel free to use and modify. I hope folks find it useful.
foxfirefey: A firework bursts over the Las Vegas night skyline. (yay)

[personal profile] foxfirefey 2011-06-26 04:47 am (UTC)(link)
Oh, I am glad someone else is sharing code snippets!
Edited 2011-06-26 04:47 (UTC)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2011-06-27 04:50 am (UTC)(link)
Looks fine in Safari 5.0.4! (And I love the layout.)
colorsnap: (Default)

[personal profile] colorsnap 2015-08-15 10:02 pm (UTC)(link)
Hi, I know this is an OLD post and chances are you won't get this, but I got here via googling my issue so might as well: I'm trying to add the website link to the navigation at the bottom of a blanket layout. Do you happen to know how, if it's possibly similar to this?