Setting up new CSS media query on Wordpress
- or -
Post a project like this3385
£10(approx. $12)
- Posted:
- Proposals: 5
- Remote
- #641626
- Awarded
Description
Experience Level: Entry
General information for the website: CSS editing
Description of requirements/features: On our site we have a series of 'textboxes' we created using CSS rules to overlay text clearly on images.
For example, on this page - http://trailaddiction.com/riding/, screenshot - https://www.dropbox.com/s/zyk7ar61gz2hdmd/Screenshot%202014-12-13%2012.55.21.png?dl=0 .
When these text boxes are displayed on mobile devices or devices with a smaller width the text is not otimised. E.g. landscape view on iPhone6 - https://www.dropbox.com/s/wv9gd5rmheqag5p/2014-12-13%2012.56.19.png?dl=0 .
(Please note that there is already a rule set so that the image is removed when viewing portrait on mobile - however, the image is still shown at landscape (it was something we missed previously) the client now likes how the image reappears in landscape mode).
Therefore, we want to create a media query that optimises any text in the 'textboxes' (css for them shown below), to be at 50% and when a text box is at left or right, on mobile it shows at 100% width.
--
.textbox{
padding:20px 20px 15px 20px;
background-color: rgba(45, 44, 44, 0.2);
background: rgba(45, 44, 44, 0.2);
color: rgba(45, 44, 44, 0.2);
margin-left:0%;
margin-right:0%;
}
.textbox-left{
padding:20px 20px 15px 20px;
background-color: rgba(45, 44, 44, 0.2);
background: rgba(45, 44, 44, 0.2);
color: rgba(45, 44, 44, 0.2);
margin-left:10%;
margin-right:50%;
}
.textbox-right{
padding:20px 20px 15px 20px;
background-color: rgba(45, 44, 44, 0.2);
background: rgba(45, 44, 44, 0.2);
color: rgba(45, 44, 44, 0.2);
margin-left:50%;
margin-right:10%;
}
.textbox-homepage{
padding: 0px 0px 0px 0px;
margin-left:10%;
margin-right:50%;
}
---
In summary:
Content of these textboxes when viewed on devices with a smaller width than desktop to be
- Always across the full screen - e.g. 10% margin either side, and not just half.
- Text content to be at 50% therefore displayed better on smaller devices.
Best Regards,
Charlie
Extra notes:
Description of requirements/features: On our site we have a series of 'textboxes' we created using CSS rules to overlay text clearly on images.
For example, on this page - http://trailaddiction.com/riding/, screenshot - https://www.dropbox.com/s/zyk7ar61gz2hdmd/Screenshot%202014-12-13%2012.55.21.png?dl=0 .
When these text boxes are displayed on mobile devices or devices with a smaller width the text is not otimised. E.g. landscape view on iPhone6 - https://www.dropbox.com/s/wv9gd5rmheqag5p/2014-12-13%2012.56.19.png?dl=0 .
(Please note that there is already a rule set so that the image is removed when viewing portrait on mobile - however, the image is still shown at landscape (it was something we missed previously) the client now likes how the image reappears in landscape mode).
Therefore, we want to create a media query that optimises any text in the 'textboxes' (css for them shown below), to be at 50% and when a text box is at left or right, on mobile it shows at 100% width.
--
.textbox{
padding:20px 20px 15px 20px;
background-color: rgba(45, 44, 44, 0.2);
background: rgba(45, 44, 44, 0.2);
color: rgba(45, 44, 44, 0.2);
margin-left:0%;
margin-right:0%;
}
.textbox-left{
padding:20px 20px 15px 20px;
background-color: rgba(45, 44, 44, 0.2);
background: rgba(45, 44, 44, 0.2);
color: rgba(45, 44, 44, 0.2);
margin-left:10%;
margin-right:50%;
}
.textbox-right{
padding:20px 20px 15px 20px;
background-color: rgba(45, 44, 44, 0.2);
background: rgba(45, 44, 44, 0.2);
color: rgba(45, 44, 44, 0.2);
margin-left:50%;
margin-right:10%;
}
.textbox-homepage{
padding: 0px 0px 0px 0px;
margin-left:10%;
margin-right:50%;
}
---
In summary:
Content of these textboxes when viewed on devices with a smaller width than desktop to be
- Always across the full screen - e.g. 10% margin either side, and not just half.
- Text content to be at 50% therefore displayed better on smaller devices.
Best Regards,
Charlie
Extra notes:
Charlie E.
100% (9)Projects Completed
18
Freelancers worked with
15
Projects awarded
43%
Last project
9 Oct 2015
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies