Forums

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

Home Forums CSS Controlling content on background images ( responsive design )

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

    Hello,

    I’ve been stucked with this for very long time.
    I was always hard coding it, so it just “fits” with bad principles and tehniques.

    For example, look at this site : http://zurb.com/

    What is the best way to handle the background image and the content over it, so for instance I want the content to be centered etc..

    I did responsive images with padding-top and make it pos : absolute. Later I just puts some random top positions ( relative positions ) to the content until I make it nice.

    Cheers.

    #158088
    Paulie_D
    Member

    I did responsive images with padding-top and make it pos : absolute. Later I just puts some random top positions ( relative positions ) to the content until I make it nice.

    If you did that then they weren’t background images which was the subject of your post.

    Arranging content around bg images is just a matter of setting boundaries on the content based on the bg image of the parent element.

    Arranging images in the HTML (lets call them** content images**) and other HTML elements is a different thing entirely.

    #158098
    boshkodj
    Participant

    I told that I don’t know how to do it, so I “did it” with paddings.. That’s why I post a question :)

    #158104
    Paulie_D
    Member

    Perhaps you could show us your HTML/CSS in Codepen but if the image is affected by paddings or margins it is NOT a bg image.

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