I am trying to change the layout so the side navigation is smaller which i have done by editing the cake.css
.top-bar.expanded .title-area {
background: #01545b;
width:350px;
}
#actions-sidebar {
background: #fafafa;
width:350px;
}
However the main content has not moved across not sure what i need to edit for it to align correctly
Thanks
Richard
Add a local.css file and add this. Set the percentages to your liking, but make sure they add up to 100%.
#media only screen and (min-width: 64.0625em) {
.large-3 {
width: 15%;
}
.large-9 {
width: 85%;
}
}
Or you could create a theme. See this post: http://www.sanisoft.com/blog/2014/07/21/themes-in-cakephp-3-howto/
Related
I wrongly edited some code in css media queries a time ago and now on mobile devices the logo of my website look like this:
.
The url of my page is: SplashYourCash.com
I cant get it to back to fill out the right space, maybe someone of you has an idea?
much greetings,
herrsocke
If you add the following CSS to your mobile media-query:
.navbar-toggle {
margin-right: 0;
}
It should fix it.
Try this at the bottom of your style.css file
#media all and (max-width: 380px) {
.logo {
height: 62px;
}
.logo.logoshrink {
height: 50px;
}
.navbar-toggle{
margin-top:27px;
margin-right:0;
}
.navbar-toggle.mt8{
margin-top:8px;
}
}
I have been searching for a while trying different methods to try and remove white space between my images on the home screen on my mobile version. It only occurs on my mobile version. My url for the site is below:
https://athleteperks.co.uk
I also have a thin small white gap between two images on my home screen which wold also be great to remove. It would be great if someone could help.
thanks
If you are referring to the bottom 5 images before the footer there is padding that needs to be removed on mobile state 767 like so:
.fw-row .blog-grid-items {
padding:0;
}
.blog-grid-items .blog-item.col-sm-sf-5 {
padding:0;
}
Adding the above CSS makes the last 5 images full width on mobile and eliminates white space.
Also removing the below CSS eliminates the small 1px gap between the two images on your home screen:
.row:not(.fw-row) .spb_swift-slider .swift-slider {
margin-left: 0;
}
Edited Answer
The below CSS needs to be added to your stylesheet in order to remove the white space from the images on mobile:
.spb_text_column, .spb_content_element {
margin-bottom: 0;
}
/* Mobile media query */
#media (max-width: 767px) {
.swift-slider-outer {
height: auto !important;
}
}
In order for the above media query to work you must have in your head file the following:
<meta name="viewport" content="width=device-width, initial-scale=1">
here is the code if you want to rid out the space in between the 5 images in the same row:
.col-sm-sf-5 {
width: 25%;
padding: 0px;
float: left;
}
.row:not(.fw-row) .spb_swift-slider .swift-slider {
margin-left: 0px;
}
.row {
margin-left: -15px;
margin-right: -15px;
}
.blog-grid-items .blog-item {
margin: 0 0 0px;
height: 330px;
padding-top: 0;
}
If you want to modify the design only for a mobile version, with resolution 1024 px, add this code and put inside this code your new classes above.
#media only screen and (max-width : 1024px) {
.classname {
/* other styles here */
}
}
Having a bit of an issue with a Drupal site. If you take a look here and look down at the facebook block, it's overlapping the blocks above it, the twitter one is not doing this. I have tried various changes in Drupal but nothing has changed. Anyone have any idea how to make it line up with the twitter one?
It is the two margin top properties asigned to the .block-facebook-wall. Disable those.
.block-facebook-wall {
/* margin-top: -7.36714em; */
}
media (min-width: 38em){
.block-facebook-wall {
width: 48.93617%;
clear: right;
float: right;
margin-right: 0;
/* margin-top: -6.8541em; */
}
}
I have created a wordpress single theme, but I am getting confuse with CSS code, where CSS rules should change the display to make menu and image slider revolution look closer.
I would like to reduce the space between the main navigation menu and my revolution slider
This is my website url: http://www.warungrempong.com/
I am trying to use this CSS code:
.admin-bar .nav-container {
min-height: 0;
}
But it's not working as desired and only work when I am using it on my browser dev tools.
When I try to change in my website, nothing happen.
How can I solve this issue?
Thanks.
In the style.css file of your active child theme (or theme), You should add this:
.nav-container {
min-height: inherit !important;
}
When looking at the generated source code of your home page, it seems that your theme is embedding some CSS rules in the html document, as you have this (on line 41 of that source code):
<style id='ebor-style-inline-css' type='text/css'>
nav .pb80 {
padding-bottom: 0px;
padding-top:0px;
}
.pt120 {
padding-top: 0px;
}
.nav-container { /* ==========================> HERE ONE TIME */
min-height: 0;
}
.logo { max-height: 300px; }
.nav-container { /* ======================> HERE ANOTHER TIME
As this is the last instance, it get the priority on first one! */
min-height: 491px;
}
.admin-bar .nav-container {
min-height: 523px;
}
#media all and (max-width: 767px){
.nav-container {
min-height: 366px;
}
.admin-bar .nav-container {
min-height: 398px;
}
}
</style>
So may be you have add this CCS rules yourself somewhere in your theme settings. The best thing, should be to remove that 2 repetitive CSS rules, and your issue should get solved without any need…
Hi dear developers and designers,
I've got a problem in editing my wordpress woocommerce based template.
I use the woocommerce theme named Neighborhood from ThemeForest in my website.
all I want to know is how to edit the width of Sidebar & Content ,( Shop Products or Post)
the theme is full width and fully responsive, so the percentage of showing would be great not a fixed pixel.
percentage of thor ratio or whatever
for example this page of my website http://aryagostarafzar.com/shop/digital-painting-pack2
you see the sidebar in the left which is about 1/3of whole width.
i could change the sidebar percentage of showing by putting this code is css :
.left-sidebar {
width:20%;
}
but the content does not automatically fit the smaller sidebar and the extra space remains free and not used by content nor sidebar.
please give me a short css code to set both.
thanks
Looks like the site is using an old version of the Bootstrap grid. The sidebar width is being determined by the ".span4" class on the tag. You'd need to increase or decrease that span class to make it larger smaller.
That will also increase or decrease the body width size. The spans must add up to 12. i.e
span4 and span8
You can ready more on it here: http://getbootstrap.com/2.3.2/scaffolding.html
Here is my bootstrap codes in styles.css
I don't find " .span4 "
other .span are available but not defined by percentage, is defined by pixel
how to edit them my friend
* #Custom Bootstrap Classes
================================================== Support for columns width sidebars
==================================================
.span-third {
width: 193px;
}
.span-twothirds {
width: 407px;
}
.span-bs-quarter {
width: 100px;
}
.span-bs-threequarter {
width: 340px;
}
#media only screen and (min-width: 1200px) {
.span-third {
width: 236px;
}
.span-twothirds {
width: 504px;
}
.span-bs-quarter {
width: 120px;
}
.span-bs-threequarter {
width: 420px;
}
}
#media only screen and (max-width: 979px) and (min-width: 768px) {
.span-third {
width: 145px;
}
.span-twothirds {
width: 310px;
}
.span-bs-quarter, .span-bs-threequarter {
width: 342px;
}
}
#media only screen and (max-width: 979px) {
.span-third {
width: 100%;
}
.span-twothirds {
width: 100%;
}
.span-bs-quarter {
width: 100%;
}
.span-bs-threequarter {
width: 100%;
}
}