• Resolved paulwpxp

    (@paulwp)


    Hello there,

    A quick question on this great looking theme. What’s the purpose of using pseudo before and after and the 200% height fixed position?

    I mean I know what that do, but I’m curious what the benefit of doing it like this as opposed to standard CSS layouts. There must be a good reason behind this, right ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can ask the developer of the Writr theme what his specific reasons were for using this, but generally, pseudo elements are useful because they give us an additional “canvas” space to work on without the need for extra mark-up.

    Hi there,

    I used pseudo elements to avoid the extra markup.

    And I used height 200% instead of 100% because I noticed a bug when zooming out on the page: we could see the background at the bottom. 200% fixes the issue.

    Thread Starter paulwpxp

    (@paulwp)

    Thanks for the explanation. I wouldn’t have thought about the zoom thing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS layout using pseudo before and after and 200% height fixed position’ is closed to new replies.