[personal profile] faevii posting in [community profile] style_system
I'm trying to create a layout by adding custom CSS to the Tabula Rasa style.

Does anybody happen to know which element I need to remove the margin from in order to get rid of the gap between the navigation strip and the header? I've tried everything I could think of already ...

Date: 2011-01-24 07:18 am (UTC)
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
From: [personal profile] foxfirefey
Don't have the time to troubleshoot at the moment BUT I highly recommend Firebug for answering those types of questions--use the HTML tab, use the arrow pointing at a rectangle, and then you can hover over objects on the page and see what style is being applied to them on the right.

Date: 2011-01-24 07:35 am (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
In that case, you can look at the "Computed" tab on the right instead of the "Style" tab--it will tell you what margins are being computed for that current block.

Date: 2011-01-24 07:44 am (UTC)
foxfirefey: Fox stealing an egg. (mischief)
From: [personal profile] foxfirefey
I don't even know what I would do without it sometimes!

Bonus: you can use Firebug to edit the CSS and tweak with it live in case you want to test out changes, too.
Edited Date: 2011-01-24 07:44 am (UTC)

Date: 2011-01-24 12:27 pm (UTC)
jana: [Naruto] Sakura (Default)
From: [personal profile] jana
You need to edit several classes:

body{margin: 0; padding:0; } --> removes some of the space between canvas and navigation strip

#canvas{margin: 0; padding: 0; overflow: hidden; } --> makes the whole canvas box 'visible', thereby 'removing' the space between header and navigation strip

#canvas .inner{margin: 0; padding: 0; overflow: hidden;} --> removes space between header and top of canvas box and and top of content box

Hope this works for you as well!

Date: 2011-01-24 06:16 pm (UTC)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)
From: [personal profile] ninetydegrees
With Tabula Rasa, this works for me:

body { margin: 0; }
Edited (remove uneeded code) Date: 2011-01-24 06:18 pm (UTC)

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 12th, 2025 07:32 am
Powered by Dreamwidth Studios