Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

sidebar in responsive mode

sidebar in responsive mode

         

giggle

8:56 am on Dec 14, 2014 (gmt 0)

10+ Year Member




Hi

Tricky question (for me anyway).

I have a sidebar that contains a search widget. It sits on the right of the screen.

The problem is that, in responsive mode, that search widget is loaded at the bottom of the page.

I would like this to appear at the top of the screen. I tried left justifying it and can't get support from the theme developers.

Anyone got any ideas how (or if) I can do this?

Thanks

Mick

lorax

4:11 pm on Dec 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That sounds like your theme is built using divs. The content column is likely left justified but because it is first, it will remain above the sidebar (2nd div) when the width of the screen is too small to fit both of them side by side.

To keep the search box at the top, look into adding it to the header or make it a part of the content area. You'll need to edit your theme (unless the theme provides the option to put the search box in the header or nav bar or someplace above the content div.

HTH

giggle

10:44 am on Dec 15, 2014 (gmt 0)

10+ Year Member



Hi lorax. Yes, I took a look at the source code and it is indeed a DIV.

I'll have a go at what you suggested. Fingers crossed!

Thanks

Mick