Community Forums › Forums › Archived Forums › Design Tips and Tricks › Metro Pro – Home middle left & Home middle right Question
Tagged: Metro Pro
- This topic has 5 replies, 2 voices, and was last updated 12 years, 7 months ago by
computerkitten.
-
AuthorPosts
-
September 30, 2013 at 7:43 pm #64881
computerkitten
MemberI have setup a test site at:
And I have Home Middle Left and Home Middle Right that I want content to be next to each other. I hesitate increasing the width on each of these sections, in fear that I will mess up the responsiveness look on other platforms.
How can I safely increase the content width of these two areas (right now I have one big blank hole in the middle between these 2 sections on the home page).Please explain.
Thanks!!
http://tinyurl.com/n7mgbx9September 30, 2013 at 9:05 pm #64898Jeremy
ParticipantAs you guessed you just need to increase the width of these sections. Just make sure you also adjust the widths in the responsive breakpoint section at the bottom of your style.css
E.g.
In the style.css line 1200
.home-middle-left, .home-middle-right {
width: 532px;
}Then in the style.css line 1992
@media only screen and (max-width: 1023px)
.home-middle-left, .home-middle-right {
width: 332px;
}
Note: These widths aren't perfect but I'm just using them as a quick demo. You may also need to adjust the padding to make it fit neatly. Best of luck!
If you want to say thanks Follow me on Twitter | My Website
September 30, 2013 at 9:11 pm #64900computerkitten
MemberSeptember 30, 2013 at 9:15 pm #64901computerkitten
MemberI made the adjustment and have a further question about that... as I reduce the window size... it looks good, and then changes where there is a big blank area in the middle still, and then as I keep reducing the window size further it goes back together again and then it stacks like it should when the window is real small in width.
Why the blank area in the middle or should I worry about it?
Thanks!!
October 1, 2013 at 6:49 am #64927Jeremy
ParticipantYou should try not to use !important unless it is absolutely necessary, otherwise it can override other responsive design settings.
For some reasons you have...
.home-middle-left, .home-middle-right {
width: 730px !important;
}within the @media only screen and (max-width: 1139px) area.
This results in the area being fixed and not responsive when viewed on mobile devices in portrait view.
If you want to say thanks Follow me on Twitter | My Website
October 1, 2013 at 6:53 pm #65021computerkitten
MemberOkay I think I got that fixed and so glad you pointed this out to me because of the !important being used on the widths... didn't even think of the fact it would cascade onto the Responsive section.
So thanks again, really appreciate it!!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.