- This topic is empty.
-
AuthorPosts
-
May 16, 2016 at 9:40 am #241676
crashprojects
ParticipantHi all. I’ve inherited a WP site from a developer who didn’t do the best job at making it mobile friendly.
Currently there’s a page where the images are justified left on desktop, with text to the right. I currently have said images set to not display on mobile but would like them to display atop the images instead.
Is there an easy way to do this? Thanks.
May 16, 2016 at 12:25 pm #241692Atelierbram
ParticipantCan you post a link to the website?
May 16, 2016 at 1:25 pm #241699crashprojects
ParticipantMay 16, 2016 at 1:46 pm #241701Atelierbram
ParticipantThe CSS for the OOCSS media-object on that website does seem to be a bit outdated. Some of those styles are targeting IE6 and/or IE7, and can probably be removed. Maybe you can take some of the code from this demo to replace it with.
May 16, 2016 at 4:35 pm #241767Timothy Smith
ParticipantI would strongly suggest you talk to you client or boss about starting from scratch with a mobile first design. It may seem crazy to you and very likely to your boss, but the amount time it will take you to debug and rework the current WP template to look good on all mobile screen sizes and resolutions would be considerately greater than starting fresh with clean code, more modern techniques, frameworks, and libraries. This will actually empower you to build better performing sites over which you have maximum control of render times, page weight, and some many other important factors of a mobile friendly a website.
Here are a few great links to help sell you on this idea:
http://www.lukew.com/resources/mobile_first.asp
https://codemyviews.com/blog/mobilefirst
http://zurb.com/word/mobile-first
https://css-tricks.com/lodge/artists-website/May 17, 2016 at 8:28 am #241798amanda_
ParticipantI would do the following:
.media { display: flex; flex-direction: column; }
Yes, the site could do with being started from scratch, but if you can’t convince them to do that, that will solve that particular issue.
May 27, 2016 at 5:54 am #242178crashprojects
ParticipantThank you all for your responses. I was able to cobble it together using some of the code from the demo. I think the client will be pretty happy with it.
Thanks again! Great info!
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.