Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   HTML / DHTML (http://siteownersforums.com/forumdisplay.php?f=7)
-   -   Responsive css help please (http://siteownersforums.com/showthread.php?t=150413)

george.web13 12-27-2014 08:51 AM

Responsive css help please
 
Let's say I have 2 divs that I want to be aside. Either with float:left,either with display:inline-block.
The div with id #div1 I want to be responsive with max-width:700px and the div with #div2, I want o have standard width. Let's say 200px.
I want when the user decreases the size of the browser, the left div (#div1), to minimize it's width, WITHOUT sending the right div (#div2) under.
I want the right div, to be under, only when REALLY dont fits in the screen.
And the left div, to behave just like it is alone. To really decrease it's width.
Is is possible ??? If yes, HOW ????
I dont use and css framework.

An example here:http://archipelago-lng.eu/Results/Publications.html

The left div (the one with the right border), and the right div-column.
Right now, i'm changing the left div's width, with media queries.
But, i want to behave just as when it's alone. (minimize it enough), to see that the red border really decreases...

Thanks in advance

george.web13 01-02-2015 06:11 AM

I found the solution!

For those who are interest:
--------------------------
Content 1 here

Content 2 here





Check now , int the above link how smoothly it works!
Much better than the media queries (i use it know for only one situation, below 500px width)


All times are GMT -7. The time now is 11:07 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.