Community Forums › Forums › Design Tips and Tricks › [Delicious] weird Home-Bottom boxes topmargin ??
Tagged: Delicious, h2, h4, home bottom
This topic contains 9 replies, has 2 voices, and was last updated by Boblebad 6 months, 2 weeks ago.
-
AuthorPosts
-
November 28, 2012 at 2:37 pm #2113
Hi
I’m trying to tweak the Delicious theme in a way that fits my project, and are having problems with something that looks like a margin or padding issue, but when using Firebug, i does not show up as either one ??
I want the padding to be the same on all four sides, but i can’t get the top to fit-in, what’s giving the extra 15px at the top ??
November 28, 2012 at 5:05 pm #2166That is coming from the top margin being applied to the h2 heading. Browsers apply their own defaults unless you declare a rule to override them. E.g. in Chrome a margin of .83 em is applied.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 29, 2012 at 3:15 am #2236Thanks for your answer SoZo
So what you’re saying is that i need to take control of h2 to get rid of the space above the title text ??
Is there a site where all these differences to be aware of, from browser to browser, is listed ??
November 29, 2012 at 4:48 am #2240And also, what if i want to change the h2 to h4, can’t seam to figure out where to do this ??
And only for the Home-Bottom boxes, i can see that the h2 i used all over the site, so a class for the bottom boxes is needed or ??
-
This reply was modified 6 months, 2 weeks ago by
Boblebad.
-
This reply was modified 6 months, 2 weeks ago by
Boblebad.
November 29, 2012 at 8:58 am #2269You can’t change the heading tags. You can add a rule to target those particular h2 tags however.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 29, 2012 at 10:01 am #2294And how do i do that the correct way ??
November 29, 2012 at 10:05 am #2300Do you mean how do you add a new style rule? If so you need to read up on CSS specificity.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 29, 2012 at 12:29 pm #2352I’m not that much into CSS yet, and are not sure where exactly to do this, everything i do to the Home-Bottom section, have an effect on the background instead of the title ..
November 29, 2012 at 2:18 pm #2375Are you using h2 in your selector, i.e. .home-bottom h2
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
November 30, 2012 at 8:49 am #2502Not if it isn’t default, i think i tried something like it, but it didn’t turn out as expected ..
-
This reply was modified 6 months, 2 weeks ago by
-
AuthorPosts
You must be logged in to reply to this topic.