faevii: (confusion)
Ocean Tea ([personal profile] faevii) wrote in [community profile] style_system2011-01-24 07:43 am

Quick Question

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 ...
foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)

[personal profile] foxfirefey 2011-01-24 07:18 am (UTC)(link)
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.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2011-01-24 07:35 am (UTC)(link)
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.
foxfirefey: Fox stealing an egg. (mischief)

[personal profile] foxfirefey 2011-01-24 07:44 am (UTC)(link)
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 2011-01-24 07:44 (UTC)
jana: [Naruto] Sakura (Default)

[personal profile] jana 2011-01-24 12:27 pm (UTC)(link)
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!

ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2011-01-24 06:16 pm (UTC)(link)
With Tabula Rasa, this works for me:

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