I am currently in the process of developing a responsive website using HTML5, CSS3, jQuery, and Media Queries.
One challenge I am facing involves a page containing a gallery of images within a 16-column grid that adjusts nicely for various screen sizes, including tablets and mobile devices. Additionally, there is a div positioned outside of the grid which displays text information when the cursor hovers over an image.
The issue:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
| _ _ _ _ _ _ _ _ | | _ _ _ _ _ _ |
||info | | 16 col | | ||in|16 col | |
|| | | grid | | => || | grid | |
||_ _ _| | gallery | | => ||_ |gallery | |
| | | | | | | |
| |_ _ _ _ _| | | |_ _ _ _ _| |
|_ _ _ _ _ _ _ _ _ _ _ _| |_ _ _ _ _ _ _ _ _ _|
However, when resizing the browser window, the gallery content overlays the 'info' div.
I attempted to solve this by changing the position of the info div to relative, but this caused the responsive 16-column container to move below the info div when scaling down - not the desired outcome.
The Question:
Is it possible to have both elements sit next to each other on the page until the tablet media query (approximately 959px wide) kicks in, at which point one can be removed?
I would greatly appreciate any comments, feedback, or suggestions. Thank you.