Home › Forums › Weaver Xtreme Theme › How Do I Make Theme Extend Width of Browser?
- This topic has 25 replies, 3 voices, and was last updated 11 years, 1 month ago by
GR8FL.
-
AuthorPosts
-
August 13, 2015 at 10:54 UTC - Views: 3 #23882
GR8FL
ParticipantThis works!
Would love it if you could break down for me what the solution means.
What is max-width:768px? And why 768 and not 767? What does nth-of-type(1) mean?
August 13, 2015 at 16:45 UTC - Views: 11 #23883scrambler
Moderator@media rule is to only do these changes on desktop as the layout is different on mobile. (min-width:768px) means the rule only applies to screen that are above 768px (desktop) 768px is the threshold used by the theme for desktop rules the 3 device size are
0-580px phones
581-767px small tablets
768- max Desktop
ul.wvrx-menu {margin-left:0;} /*this removes the left margin on the list of menu items*/
.menu-primary .wvrx-menu-container li:nth-of-type(1) a {padding-left:0;}
/*This remove the individual left padding on the first menu item.
.menu-primary .wvrx-menu-container li a are the four selectors used in the original padding rule that you see if you inspect the page
Inside the .wvrx-menu-container are several li elements (one for each menu items), given I only want to change the first one, I select the first one by adding :nth-of-type(1) to the li selector (the first of its type in the container)*/.wvrx-menu-right {margin-right:0;} /*this removes the right margin on the add HTML container*/
img.wvr-btn-3, img.wvr-btn-6 {padding-right:0 !important;} /*this removes the right padding on the image of the last buttons*/
#footer-widget-area {padding:8px 0;} /*this removes the right and left padding on the footer widget area*/
#footer-widget-area .widget-4 {padding-right:0px;} /*This removes the right padding on the 4th widget in the footer widget area*/
All the selectors are found inspecting the page with the browser developer tool and check which rules contain paddings or margin that need to be removed.August 14, 2015 at 17:25 UTC - Views: 3 #23884GR8FL
ParticipantThanks for the explanation.
I am back to using Firefox now. What tools do you recommend to check all this? I do have Web Developer: http://chrispederick.com/work/web-developer/, but am wondering if something else is better.
August 14, 2015 at 18:49 UTC - Views: 2 #23885Gillian
ParticipantHave you tried the Firefox extension “Firebug”?
August 14, 2015 at 20:29 UTC - Views: 2 #23886scrambler
ModeratorYes in Firefox, the standard tool is Firebug
August 15, 2015 at 19:05 UTC - Views: 3 #23887GR8FL
ParticipantThanks!
Now off to learn this tool.
August 15, 2015 at 19:12 UTC - Views: 2 #23888scrambler
ModeratorIf you have not done so yet, also read this threadAugust 15, 2015 at 20:14 UTC - Views: 8 #23889GR8FL
ParticipantOn my tablet the left and right menu bar icons are almost cut off… need a pixel or two for breathing room. How can I fix this?
I have a screen shot, but having trouble posting it here.
Update: I added 15 px to the rule you gave me to match the 15 px padding I added to the container. Does this make any sense or do I even need the rule anymore?
@media screen and (min-width:768px){
ul.wvrx-menu {margin-left:0;}
.menu-primary .wvrx-menu-container li:nth-of-type(1) a {padding-left:15px;}
.wvrx-menu-right {margin-right:0;}
img.wvr-btn-3, img.wvr-btn-6 {padding-right:15px !important;}
#footer-widget-area {padding:8px 0 0 15px;}
#footer-widget-area .widget-4 {padding-right:15px;}
}August 15, 2015 at 20:34 UTC - Views: 7 #23890scrambler
ModeratorIf you decide to have these item aligned exactly to the left and right of the wrapper, this is what you get.If you dont, then instead of setting all the values to zero, set them to something else (in yellow below)@media screen and (min-width:768px){
ul.wvrx-menu {margin-left:5px;}
.menu-primary .wvrx-menu-container li:nth-of-type(1) a {padding-left:0;}
.wvrx-menu-right {margin-right:5px;}
img.wvr-btn-3, img.wvr-btn-6 {padding-right:0 !important;}
#footer-widget-area {padding:8px 5px;}
#footer-widget-area .widget-4 {padding-right:0px;}
}August 15, 2015 at 20:42 UTC - Views: 5 #23891GR8FL
ParticipantI think we both answered the question at the same time, and you confirmed what I just added in during my update to the question, except you did margins and I did padding. I guess I could just eliminate the rule. What do you think?
BTW – trying to figure this out with Firebug is going to take some time, but I appreciate the point in the “right” direction.
Thank you so much!
-
AuthorPosts
- You must be logged in to reply to this topic.

