Site not looking great on mobile/tablet, need adjusting - css

My site isn’t looking great on a mobile or tablet. Issues are mainly with header & the slider, www.bluehaveninv.com
Header is too wide (two rows) on mobile - I’d like it to be only one
row (that should include the hamburger menu too)
The slider loads v slowly - only the small text is visible first,
then part of rotating text, then some of fixed text, then the rest
(but some part remains hidden by the header). The word doesn’t fit
in a line - have tried to change font size for mobile, but it isn’t
working.
The small text on the slider is very small on the iPad. It’s fine on
the mobile and desktop.
Let’s work together section doesn’t have space between them on a
mobile. Is there a way to add some space between two blocks - flex
container - only for mobile?
On the iPad, since I am using 3 blocks in what we offer, 3 in
investment philosophy, the third part is aligned left below the
first two which gives a feeling of something left out. On the
desktop, all 3 are displayed in a line, which looks great. Any way
to centre align the third block for tablets? It’s a flex container.
I’ve tried using the code below to fix the header & font in slider, but nothing happens. I’ve flushed my cloudflare & site cache as well as browser cache. I’ve tested this on an ipad 6 (safari), iphone 6 & 12 (safari, firefox, duckduckgo)
#media (max-width: 767px) {
.hero__content h2 {
font-size: 20px !important;
}
.site-branding { max-width: 80% !important; }
.site-header { max-width: 80% !important; }
}
I added the word “screen and” in the code after #media & tried again, but to no avail.

Try It
#media all and (max-width: 767px) {
.hero__content h2 {
font-size: 20px !important;
}
.site-branding { max-width: 80% !important; }
.site-header { max-width: 80% !important; }
}

Related

How to create a media query to change the background image to a different background image?

The site is falboretirement.com. However you need to access it via the link http://falboretirement.com?bypass=jks, because there is a "coming soon" page that otherwise blocks access. For the desktop version, the hero background image of the happily retired business man jumping in the clouds is the image I want. But, on smaller screens, I want to substitute a solid blue. I've uploaded a blue.gif to the website to use.
This is a commercial wordpress theme that I am using and I noticed that the theme CSS contains a
.vc_custom_1565817449198 {
background-image: url(https://falboretirement.com/wp-content/uploads/iStock-638087592_1920X600-60-2.jpg?id=1443) !important;
}
which is the code that is setting up the correct background image for large screens. I'm wondering if the theme author's use of !important is preventing me from being able to override the background image to set it to a solid blue?
I tried using a very specific selector, in the hopes of overriding, but its not working... here is the code that I have tried
#media screen and (min-width: 320px) and (max-width:1024px) {
div#freedom-retire.vc_row.wpb_row.vc_row-fluid.businessman.vc_custom_1565817449198.vc_row-has-fill.vc_row-no-padding.vc_row-o-full-height.vc_row-o-columns-middle.vc_row-flex {
background-image: url (https://falboretirement.com/wp-content/uploads/blue.gif) !important; background-repeat: repeat !important;
}
}
I also tried:
#media screen and (min-width: 320px) and (max-width:1024px) {
div#freedom-retire.vc_custom_1565817449198 {
background-image: url (https://falboretirement.com/wp-content/uploads/blue.gif) !important; background-repeat: repeat !important;
}
}
I verified that the blue.gif is in the folder specified, but I have not been successful.
I hope that you can fix the issue by removing the space between URL & Bracket.

Extra Space on Essential Grid

I am using essential grid to show 4 panels on my homepage. the panels work fine on desktop however on mobile there is extra margin at the top. I have applied following CSS;
.l-section{ margin-top: 0 !Important;
min-height: 0 !Important;
}
But nothing seem to work. The website is tyloz.com, any help is appreciated.
For your homepage, you'll wanna add this media-query.
#media (max-width:767px){
.l-subsection-h {
margin-top: 0!important;
}
}

White space between header and content (smart slider) on phone&tablet only Wordpress

I have been trying to change the code for ages, nothing seem to change on phone and tablet, white space between the header and content still appears but only on phone and tablet.
LINK to website
If you add css code given below, then your issue will be resolved.
#media only screen and (max-width:767px) {
body {
padding-top: 0px !important;
}
}

Form width increases on Safari for iPhone

I don't understand why form width increases on Safari for iPhone. I tried to modify my CSS, and seems that "font-size" caused the problem. Any Solutions?
This is the code:
HTML:
<input type="text" id="form" class="newsletter_input" name="email">
CSS:
.newsletter_input {
border: 0px solid #fff;
background: #fff;
color: #0ce980;
font-family: 'Lato', Arial;
font-weight: 300;
font-size: 42pt;
width: 855px;
height: 100px;
margin-left: 50px;
margin-top: 10px;
text-align: center;
}
.newsletter_input:focus {
ouline: 0;
}
Mobile Safari (like Chrome for Android, Mobile Firefox and IE Mobile) increases the font size of wide blocks (at all times), such that if you double-tap to zoom in on that block (which fits the block to the screen width), the text will be legible. If you set -webkit-text-size-adjust: 100% (or none), it won't be able to do this, and so when a user double-taps to zoom in on wide blocks the text will be illegibly small; users will be able to read it if they pinch-zoom in, but then the text will be wider than the screen and they'll have to pan horizontally to read each line of text!
Ideally you would fix this by using Responsive Web Design techniques to make your design adapt to mobile screen sizes (in which case you would no longer have any very wide blocks, so mobile browsers would no longer adjust your font sizes).
Finally if you really need to prevent Mobile Safari from adjusting your font sizes you can set -webkit-text-size-adjust: 100%, but do this only as a last resort since it is likely to cause mobile users to have difficulty reading your text, as it'll either be too small or they'll have to pan from side to side after every line they read. Note that you must use 100% not none because none has nasty side-effects in desktop browsers. There are also equivalent -moz-text-size-adjust and -ms-text-size-adjust properties for Mobile Firefox and IE Mobile.
Edit: for example in your case the simplest is probably the 2nd alternative, so you could try adding the following CSS:
/* Mobile browsers only */
#media only screen and (max-device-width: 480px) {
.newsletter_input {
width: 855px;
}
.newsletter_input #form{
font-size:42pt
}
}
Though it's not ideal to hardcode 855px like this; you could improve on that by using a variety of CSS media queries, or getting the device-width from JavaScript.

My wordpress site doesn't render correctly on larger monitors

I've been working on this site for the last couple of days. Everything was going perfectly well on my 13" laptop - and even on the 17" PC laptop I checked it on. However, the magazine owners looked at it on a 21" screen earlier today and apparently it looks radically different. I just checked it on a monitor in an Internet cafe, and it appears they have a point. Can anyone help?
In the style sheet, replace
body { color:#000; background:url(images/bg.jpg) fixed; }
with
body { color:#000; background:url(images/bg.jpg) fixed no-repeat center; }
Then, center the content with
body {width: 600px; /* from the background image */ margin: 0 auto; }
this should work better.

Resources