CSS driving me nuts. Can't get Desktop and Mobile (responsive) straight
-
I’m building a new WordPress-website and even though there’s plenty of work left to do (and I did do my research), I’ve been stuck on trying to get the CSS straight, so the homepage is being displayed on both desktop and mobile in a correct and decent way.
So far, I’ve been succesful for over 50%, but there’s still work left to do (it’s driving me nuts right now).
Website: https://bit.ly/1L6b47u
(Id like to keep the (domain)name of this website low profile on www.remarpro.com so it can’t be Googled)Username & password: https://oi61.tinypic.com/2cfa9zq.jpg
I’m using the Revolution Slider-plugin on top of the homepage to embed a YouTube-video. The thing is though, this only works for desktops. If you were to visit the website on a mobile device, the video is replaced (optional) by an image (or even nothing).
There’s this CSS-trick inside the Revolution Slider-plugin, which lets you create 2 slides. Both slides will then recognize which device is being used and show the right slide for the right device.
Slide 1: Desktop (shows video on top)
Slide 2: Mobile (shows black and white background-picture with logo on top)Seemed like a great alternative solution, since you would be able to fully control the second (mobile) slide (instead of using the normal way with lesser options).
I rebuild the theme (from scratch) two times now to try and figure out what causes the website to fall apart when I decrease the width of my webbrowser (to have an idea what the mobile layout would look like)
You could try and do the same. Just open the website (link above), login (image in comment below), visit the front page and decrease the width of your browser. In full size it’s exactly the way I want it to be. The more you decrease the width of the browser, the more ‘switch’-points occure:
Full screen: https://oi58.tinypic.com/bgzles.jpg
800px (https://oi62.tinypic.com/296jknn.jpg): from video slider to image-slider -> logo in slider is centered but too high
767px (https://oi60.tinypic.com/i3ujbr.jpg): from website to mobile (header changes) -> logo in slider is centered but too high
639px (https://oi58.tinypic.com/2r5sw3c.jpg): logo is being corrected to the center
496px (https://oi61.tinypic.com/209gb47.jpg): mobile layout as being displayed on smartphonesSo basically, between switching/decreasing the width of the full screen website (in a browser) to the size of the mobile presentation – as being shown on a smartphone (496px and below) – there’s 4 steps (‘switch’-points if you will) in which the website transforms (tablet/notebook?). Two of those steps screw up the layout (logo being pushed up too high) and it ain’t just a matter of adding a margin-top to the image (as far as I can tell).
QUESTION
Is there anyone who’s capable of seeing what I’m missing? The structure for the full screen website (home page) is pretty much finished (as for the CSS). I’m also pretty satisfied with the structure of the 639px and 496px layouts.
Anyone willing to have a look?
Many thanks!
- The topic ‘CSS driving me nuts. Can't get Desktop and Mobile (responsive) straight’ is closed to new replies.