Currently I have been encountering a problem with my website where there is a mysterious blank space at the top of my website that is not attributed to any specific div or HTML item. This is happening on all my pages and my usual guides are as dumbstruck as I to this problem.
Alas, I cannot give code snippets of the issue because I don't know where the problem is being made however I do have a live version of the website available.
Live version of issue: sch242.comeze.com
If anyone can figure out the reason for this I would be very appreciative. I cannot find another topic similar to this on stackoverflow already.
Remove margin-bottom from <nav id="menu"> CSS
nav {
background: none repeat scroll 0% 0% rgb(255, 255, 255);
color: rgb(51, 51, 51);
margin-bottom: 6em; //Remove this property
}
In your main.css the following class giving this issue.
nav {
background: #FFFFFF;
color: #333333;
margin-bottom: 6em; /* Issue line*/
}
your nav style has a margin-bottom. If you remove it will stick to the top.
nav {
background: #FFFFFF;
color: #333333;
/*margin-bottom: 6em;*/
}
main.css file
nav {
background: #FFFFFF;
color: #333333;
margin-bottom: 2em; /* this will make it look better */
}
Related
Before you mark me as duplicate: I've read all the similar questions and tried the solutions and either I'm too dumb to understand them (a valid possibility), or my problem is different, but they didn't work for me.
I was marked off-topic on wordpress forum since it is apparently a css/html problem, so I reposted here.
Now on to the problem:
I'm having trouble with removing the underlines of some links I have on my site. Here's my html definition of the links:
<p style="text-align: center;">
<a class="buttonL" href="http://cns.uni.lu/homel"><</a>
<a class="buttonR" href="http://cns.uni.lu/homer">></a>
</p>
And my CSS from the "custom CSS" page:
.buttonL {
border-radius: 50%;
position:fixed;
top: 50%;
left: 0%;
background-color: transparent;
border: none;
color: grey;
padding: 5px 20px;
text-align: center;
text-decoration: none !important;
display: inline-block;
font-size: 50px;
margin: 4px 2px;
cursor: pointer;
font-weight: 900;
}
.buttonR {
border-radius: 50%;
position:fixed;
top: 50%;
right: 0%;
background-color: transparent;
border: none;
color: grey;
padding: 5px 20px;
text-align: center;
text-decoration: none !important;
display: inline-block;
font-size: 50px;
margin: 4px 2px;
cursor: pointer;
font-weight: 900
}
I know it's redundant and inelegant. No use commenting on that. I can make it more elegant later.
For some reason, there is a line underneath the links, that won't go away. I've tried using
text-decoration:none !important;
, but to no avail. I've applied it on .buttonL, .buttonR, a, .buttonL a, .buttonR a, .buttonL:link, .buttonL:active, .buttonR:link, .buttonR:active, .buttonL a:link, .buttonL a:active, .buttonR a:link, .buttonR a:active.
I've also tried doing
border-bottom: none;
and
box-shadow: none;
, also to no avail.
Any ideas as to what I'm doing wrong?
P.S. I can't link the page I'm referencing, as it is on an internal network. Sorry...
Here's a screenshot of the page:
The links in question are the arrows to either sides. Although the other links have the same problem.
Use This CSS may be help you thanks
body .buttonL, body .buttonR {
text-decoration: none !important;
}
OR USE THIS
body a{
text-decoration: none !important;
}
I just found the solution:
For some reason the background gradient (although it was white) left a line at the backgrounds border (or center - I'm not sure). To remove this, I added
.entry-content a{background-image:none;}
to the css file, instead of just making it transparent.
Thanks for all the help :D
If the css is not working means then use jquery
<script>
$(document).ready(function(){
$('.buttonL').css('text-decoration','none');
$('.buttonR').css('text-decoration','none');
});
<script>
I hope this will solve your issue.
My Wordpress Page footer floats in the center of the page and I wish it would reach the bottom of the browser window despite the size of the window. (See screenshot)
Click link for screen shot as I don't have permission :(
http://imgur.com/IRR0aBp
I'd post code but the style.css editor portion in Wordpress is way over the 30K character limit.
Any help or direction would be great. Thank you.
EDIT:
Not sure if this code is useful but this is from the footer.php file in Wordpress
* 8.0 Footer
* -----------------------------------------------------------------------------
*/
#supplementary {
padding: 0 10px;
}
.site-footer,
.site-info,
.site-info a {
color: rgba(255, 255, 255, 0.7);
}
.site-footer {
background-color: #000;
font-size: 12px;
position: relative;
z-index: 3;
}
.footer-sidebar {
padding-top: 48px;
}
.site-info {
padding: 15px 10px;
}
#supplementary + .site-info {
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.site-info a:hover {
color: #41a62a;
}
So the issue is you don't have enough content to push the footer to the bottom. Assuming you don't need to worry about old browser support try using flexbox.
http://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
If you do need older browsers bootstrap has an example of a sticky footer. It relys on position: absolute and you'd need to know the height of your footer to get it perfect.
http://getbootstrap.com/examples/sticky-footer/
i am trying to do a vertical navigation bar from this codepen
http://codepen.io/bronsrobin/pen/GAlfg
but i only need the navigation bar nothing else
i tried to copy the html related to the navigation bar but nothing happened
you can check my fiddle
http://jsfiddle.net/922ug/
html
<aside>
<a class="current">Home</a>
<a>Users</a>
<a>Schedule</a>
<a>Info</a>
</aside>
look on the js fiddle to understand.
can anybody fix it for me please and tell me whats the problem?
There are two issues with your JSFiddle code.
1: Your are using SCSS where normal CSS is expected
All your CSS lines affecting color are actually written in SCSS code.
SCSS (Sassy CSS) is a CSS preprocessor language, it enables you write CSS with a few extra features that are not normally not allowed (such as the use of variables and calculations); when you save it, a program converts/compiles it into a standard CSS file.
But rarely should you enter straight SCSS into a browser. In this case, it must be converted to regular CSS first (note that the CodePen example specifically says "CSS (SCSS)" at the top, so CodePen is automatically doing this compiling; JSFiddle is not).
For example, this SCSS line in your JSFiddle:
background-color: $black;
It uses a variable, $black. CSS will not understand this. Using the CodePen example's color variables at the top, the CSS line would normally be compiled to:
background-color: #171616;
Which is perfectly valid normal CSS.
Here's the fully-compiled CSS you need:
aside {
width: 17%;
min-width: 150px;
max-width: 300px;
height: 100%;
background-color: #171616;
position: fixed;
top: 50px;
float: left;
padding: 25px 0 0 0;
}
aside a {
display: block;
line-height: 40px;
border-right: 4px solid transparent;
cursor: pointer;
transition: background-color .3s linear,
border-right-color .3s linear,
color .3s linear;
color: #808080;
padding: 0 0 0 30px;
font-weight: 600;
text-transform: uppercase;
text-decoration: none;
letter-spacing: 1px;
}
aside a:hover,
aside a.current {
background-color: #1D1B1B;
border-right-color: #FDCC1C;
color: #FFFFFF;
}
2: You are using a jQuery script but did not add the jQuery library to your code
This keeps the code from successfully running. In JSFiddle, you can add the library by using the drop-down menus on the far-left.
The revised menu solving both issues can be seen here:
http://jsfiddle.net/922ug/1/
This is my first time using a framework and I'm working with zurbs Foundation 5 framework.
I have tried to extend/overwrite the default .button class and am using that as my main button. Below is the the css for my custom.css file that is overwriting default Foundation 5 styles:
The CSS styles
.button {
font-family: 'Alegreya Sans','Helvetica Neue',Helvetica sans-serif;
background: rgb(238, 77, 13);
color: rgb(241, 227, 186);
border-radius: 30px;
padding: 10px 15px;
font-size: 80%;
margin-top: 10px;
}
.button:hover{
background: #46A18C;
}
The corresponding HTML elements:
<p>This is a description of the thing in the thing</p>
<a class="button" href="#">View Project</a>
The problem I seem to be having is only evident in webkit browsers (safari/chrome) where everything works perfectly on load. The issue only comes up after you click a link, which all are set to href="#" for now. Once a link is clicked, the text inside each button disappears, only to reappear on hover. Not sure if it's relevant but the Foundation styling for this link also includes a transition property that is set to background-color 300ms ease-out 0s
You can see an example here: http://www.kashmachine.ca/build
I'm not sure what's causing, I've gone through it through firebug, disabling styles 1 by 1 but nothing seems to fix it. Any/all suggestions would be fantastic. I'm a little new to web development, but this has really stumped me. Thanks again for any help.
Your
a, a:visited {
color:#EE4D0D;
text-decoration:none;
}
have the same color as the background of your buttons..
Address your buttons like this:
a.button
So:
a.button {
font-family: 'Alegreya Sans','Helvetica Neue',Helvetica sans-serif;
background: rgb(238, 77, 13);
color: rgb(241, 227, 186);
border-radius: 30px;
padding: 10px 15px;
font-size: 80%;
margin-top: 10px;
}
a.button:hover{
background: #46A18C;
}
That should overwrite it..
I have just posted my question before for the same topic which is Here. I got a correct answer from Mr. Simon, thanks to him. I found one more issue, the width of the drop down menu is very small and its not coming in one line please Click Here to know the detail. I want the text to come in one line...
Also, he said to use the below code to remove the last splitter in the menu filed. I dont know where to put this. Can you assist me.. Thanks..
$('.green ul.mega-menu li:last-child a').css('background','none');
Try adding this to your CSS:
.mega-menu a { white-space: nowrap; }
For second issue (width of nav items):
Remove the fixed width (and I would change text-align: center to text-align: left) on the following CSS declaration:
.green ul.mega-menu li a {
background: url("images/bg_green.png") repeat-x scroll 100% 0 transparent;
color: #000000;
display: block;
float: left;
padding: 12px 38px 12px 25px;
text-align: center; /* <--- Change this to text-align: left; */
text-decoration: none;
text-shadow: 1px 1px 1px #FFFFFF;
width: 102px; /* <--- Remove this */
}