Forums

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

Home Forums CSS Large typography with consistent padding

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #264143
    cives
    Participant

    Hi all –

    I’m very close to achieving the attached screenshots, though i’m not quite there yet. My challenge is getting the coded version (screenshot 2), to look identical to the mock (screenshot 1).

    Screen_Shot_2017_12_20_at_3_06_19_PM
    Screen_Shot_2017_12_20_at_3_05_51_PM

    The site is coded w/ bootstrap and this is the structure of that section:

    Screen_Shot_2017_12_20_at_3_16_27_PM

    With some minor css tweaks I’ve been able to come close, but I am having some overlapping issues and in consistencies. If I give it too much padding, it wants to wrap to another row.

    Any suggestions? Perhaps a psuedo element?

    Cheers

    #264148
    Paulie_D
    Member

    Images of code are of no value unfortunately.

    A Codepen.io demo is what we need.

    #264149
    cives
    Participant

    This will probably be even more helpful: http://697792-hs-sites-com.sandbox.hs-sites.com/about

    you can use inspect tool to view the css, etc.

    #264155
    Paulie_D
    Member

    Actually no, a Codepen.io demo is preferable since the HTML & CSS is right there and we don’t have to use Inspect.

    We can also fork the Pen with our own code to suggest improvements/tweaks.

    Help us help you, make a minimal demo in Codepen.io.

    #264157
    JeroenR
    Participant

    There are probably several ways to achieve this.
    I would set the line-height of the class .numlg to 0.75 or something like that. And set the background color in the :after of the first column DIV in the row with the numbers in it (the one with these classes col-md-8 col-md-offset-2 text-center-m). Instead of the separate blue underlay DIV.
    Then I wouldn’t use the top padding in the next row.
    This way the whole thing is wrapped in the same row.

    Something like this: https://codepen.io/jeroenreijs/pen/GyqPRB

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