• I’m using a text widget to create a 3 column banner. The banner is horizontal across the screen. On the left: video, center: text, right: button. When I size the page down everything stays in position and gets smaller. I would like for these elements to reposition themselves one under the other in a vertical line.

    Here is the code I am using. Any help is greatly appreciated. Thanks!

    `<div style=”width:30%;position:relative;padding:0px; 10px 0 0;float:left;”>
    <iframe width=”300″ height=”183″ src=”https://www.youtube.com/embed/T_y0Gmsfqro&#8221; frameborder=”0″ allowfullscreen></iframe></div>
    </div>

    <div style=”width:40%;position:relative;padding-left:40px; 10px 0 0; text-align:left; float:left;”>
    Your content for your column #2
    Your content for your column #2
    Your content for your column #2
    </div>

    <div style=”width:30%;position:relative;padding:0 10px 0 0;float:right;”>
    Contact Us
    </div>

    [please continue with your original topic at https://wordpress.org/support/topic/3-column-banner?replies=4 ]

Viewing 1 replies (of 1 total)
  • Well the first thing is you are using % for widths… so by definition you are asking the Divs to all resize as you change the size of your screen.

    So instead consider using specific widths, eg 300px.

    Then next I would try swapping the final float right to a float left.

    Then see how that works… I may have missed something but those are the first steps I would take.

Viewing 1 replies (of 1 total)
  • The topic ‘3 column banner’ is closed to new replies.