Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] A problem in aligning part-2

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #201941
    yash02
    Participant

    Codepen is not working(it is migrating) so i post this pastebin link:-
    http://pastebin.com/raw.php?i=DGwXGHxG

    I have the problem that the heading in each div is taking too much space on top and bottom.

    I want to know that how can I reduce that space on top and bottom of the heading text(like N.O.V.A. 3)it.

    Please dont suggest me to change the font.I got it after searching 2 hrs on google.

    #201944
    Paulie_D
    Member

    Are you using a reset css…I’m guessing not. You should look into that.

    Try setting the margins on your p.heading to 0.

    Many elements come with built-in margins/padding and a reset css will remove those.

    There are many freely available to copy and use and customise to your desires. Another option is normalize.css which does the same thing (basically) but with the intention of making browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.

    #201946
    yash02
    Participant

    Brother you always rock. Thanks Paulie_D

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.