Forums

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

Home Forums CSS Full responsive banner trouble

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #44497
    Helen76
    Member

    I have a problem building this responsive website: http://new.ingeniornytt.no/

    The two top banners to the right of the logo is not showing next to eachother for tablet size, but underneath eachother.

    I see the problem is the width, but how can I make the banners scale down and show the same way as it is showing in full view?

    For phone size it is ok that it is moving under the logo.

    #133824
    Paulie_D
    Member

    It’s because the images aren’t scaling (if they are supposed to).

    Once you add up the total of the widths of the element inside the header they come to more than the width allowed in your media queries…so something has to move.

    I would look into working on making the images responsive. The first thing you should do is remove the inline dimension properties.

    #133949
    Helen76
    Member

    Thank you for your answer, but I have tried to do it.

    Now the code is:

    .openx_top_ad *, .class-openx_block img {
    max-width: 100% !important;
    }

    I have tried to do this:

    .openx_top_ad *, .class-openx_block img {
    border:1px solid blue;
    width:50%;
    height:50%;
    float:right;
    }

    Do anyone have any ideas?

    #133955
    Paulie_D
    Member

    That width probably won’t work unless they are in their own wrapper element. Otherwise they will default to 50% of the header div.

    I’m also still seeing inline CSS on the images.

    Also, this is probably not a good idea

    .openx_top_ad *

    #133960
    Paulie_D
    Member

    If you remove the inline widths, you get this at under 800px wide

    #133962
    Helen76
    Member

    Okay… but I want them like this

    http://screencast.com/t/QGcnHXta

    Any idea?

    #133966
    Paulie_D
    Member

    You’d need to adjust your media query to stop them floating right and, perhaps float left along with removing all that inline CSS.

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