![]() |
Mobile friendly mode - black space added
3 Attachment(s)
My site is cumbria-stone-walling.co.uk.
I've used juggledad's responsive solution to reposition the right sidebar, plus a host of other @media instructions. So far I've only finished coding for small screens in portrait mode, but the plan is to have code for a range of sizes in both portrait and landscape mode. Code:
@media only screen and (max-width: 700px) and (orientation: portrait) { } I've got a black bar which appears on my iPhone4s between the footer and the bottom of the responsively repositioned sidebar (see attachment). That shouldn't be there. In addition, I'd like to add some space below the box which reads "Contact..." (which is td#right), so that it looks like attachment 2 - which I made up in photoshop. The green background is given by: Code:
#bodyrow { Any suggestions gratefully received. Paul |
Try this: go to ATO->Add HTML/CSS Inserts->CSS Inserts and find the lines:
HTML Code:
@media only screen and (max-width:500px) { HTML Code:
@media only screen and (max-width:500px) { |
2 Attachment(s)
Thanks, juggledad.
This works to an extent, but as shown in the two attachments, this solution doesn't quite work with the "box-shadow: 0 0 110px #9CA28B inset" setting I have on #bodyrow, or with the different background colours on different pages. The problem seems to be created by the margin setting in this expression: Code:
td#right { What I'll try first is to re-write the content of the widget in td#right. Thanks, Paul |
The reason for the apparent difference in the color is because on the body row you are using a box shadow, that modifies the color of that element by just a little
HTML Code:
.page-id-8 #bodyrow, .page-id-50 #bodyrow, .page-id-39 #bodyrow, .page-id-279 #bodyrow, .page-id-12 #bodyrow { It's like you have built a balancing house of sticks and keep adding something in to try to fix something else, but that intern creates another issue. |
Yeah, it is a bit messy :), but it seems to hold up ok. Whilst the buck stops with me, using a 13 year old computer doesn't make life easier. This theme, being of similar vintage, is mercifully about the only thing that still works correctly.
Those unused rules and selectors are mostly for content that I haven't added to the website yet. |
Try this, where I said change to this:
@media only screen and (max-width:500px) { body {background-color: #AEB49B;} } change the color to #a7ac94 instead and see if that works |
All times are GMT -6. The time now is 07:29 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.