CSS button text disappear when accessing target page, only appears when hovering - css

I am trying to design a button for a multi-lingual Wordpress site, in order to access the contact page. The problem appears when I click on it and access the target contact page. At this point the text in the button disappears, and only reappears when I hover over the button. The text appears normally in all the other pages, this only occurs when I access the target page. I will attach some screenshots below of the button working normally in other pages, how it looks when hovering over it and how it looks when accessing the contact page where the problem appears.
I have tried different codes for creating the button but the problems keeps appearing. Below is the code I am currently using.
.btn-class-eng{
border-radius: 50px;
padding: 0px 40px;
color: #ffffff;
border-color: #4064d7;
background-color: #4064d7;
}
.btn-class-eng a {
color:#fff;
}
.btn-class-eng:hover{
opacity:0.8;
color:#4064D7;
background-color:#3A3A3A;
}
I expect the text to appear on the button when not hovering over it, as it does in all the other pages.

Add the following CSS block, too:
.btn-class-eng a:visited, .btn-class-eng a:link {
color:#fff;
}
All visited links turn blue, by default, making the background and the text, both, blue. Hence, it looks as if the text disappeared.
a: visited makes sure that if the link is already visited, it still remains white in colour.
Corrected: as suggested by #04fs.

Related

Whenever i click on the primary menu options of my website then unwanted shape appears.Please suggest me how to remove it?

Whenever i click on the top primary menu options of my website then unwanted dotted rectangle shape appears. This is my wordpress website and here i am using astra theme. Please see the attached screenshot1 below for more clarity of this issue.Please tell me how i can remove or rectify this because it looks so unprofessional.
Your browser adds this to <a> elements, when they become “active” or “focused” (e.g. clicked). You can disable this behavior by adding this to style.css:
:focus {
outline: none;
}
::-moz-focus-inner {
border: 0;
}
Consider adding new focus styles of your own because that outline we just disabled was intended for accessibility.

Wordpress page complete text gets underlined when page is hovered

I'm creating a website for myself in WordPress using Elementor free plugin and Phlox theme. I've just started and completed a couple of sections. Each section has some text, buttons and some images. The issue I'm facing here right now is that when I open the website and move my mouse pointer inside the Webpage area, the text in all sections gets underlined just like any hyperlink but there is no hyperlink with any text. I've checked settings in customizations and other stuff in theme settings but nothing helped. I'm new on WordPress and don't know how to debug this in any technical depth. Please have a look and tell me how can I fix this issue.
I can't continue with these underlined text appearing all over my page.
Link : myWebPage
Any help is appreciated.
Try this:
.csstransitions .aux-page-show-circle.aux-page-animation-done #inner-body, .csstransitions .aux-page-show-circle.aux-page-animation-done {
height: auto;
overflow: visible;
text-decoration: none;
}
Always attempt to use your browser dev tools to check these things. In your css you have this in your custom.css file. Dont know why its there but thats the cause
body:hover {
text-decoration: underline;
}

How can CFWindows be printed

We have begun using CFWindows extensively on our website, ever since our upgrade to ColdFusion 9. Today one of our users pointed out that they cannot print a page with an active CFWindow. The CFWindow prints out transparent with the background page showing through.
We had a color issue a while ago and styled the back of the CFWindow to a solid color:
<style>
.x-window-mc { background-color: #FFFFFF; }
</style>
We tried both with and without this style, but with no success. Our target browser is IE8 at this time.
How can we make our CFWindows opaque so that they will appear correctly when the user initiates a browser print command?

Contact Form will only display if I remove the 'zoom' property; need a solution

I setup a static html landing page; displays perfectly in Chorme, Safari, and Firefox. However, I cannot get the embeded MailChimp contact form name and email fields to display when I use the zoom property; as soon as I remove it, the inputs show up too large and out of place which is why I used the zoom property in the first place.
Why would this cause an error? Is there anyway to rememdy this odd problem?
url: http://comingsoon.veteranbrewingcompany.com/
TIA
You really need to address why the form is so large. Various styles are causing it to be so, such as
#mc_embed_signup .mc-field-group input {
font-size: 40px;
}
#mc_embed_signup .button {
background: url("http://themicroscopeguy.com/wp-content/uploads/2013/05/submit2.png");
width: 207px;
height: 92px;
}
So, you have big font sizes set, and the submit button is quite a large image. You can address all that via CSS. You don't need an image for the subbmit button, as you can easily style a normal button with CSS.

Main nav takes on hover style on page load

I have a horizontal nav menu that I am working on. I have one issue left with this menu. When the user navigates to a page, I would like the main li to remain hovered. Right now, the li does not remain in a hovered state and simply reverts to default. Do I need to give the body a class to make this work or is there another way? The code snippet can be found here: http://jsfiddle.net/SeasonEnds/LSmfN/
Ideally, the Read tab should take on the hover styles upon on loading the page, but go away as the user hovers over the other main nav links.
The highlight on the active element shouldn't really disappear when the user hovers on another top-level link as this is bad for usability - if the user doesn't click on a link then they've lost the visual clue as to where they are on your site.
I've amended the css slightly:
ul#topnav li.on a {color:#828282; background: #f3f3f3; }
ul#topnav li a:hover {background: #f3f3f3; color:#828282;}
ul#topnav li a:visited {color:#828282; }
I've also added a bit of jQuery to keep the colour of the active top-level link as you hover over the children:
$("li a").hover(function(){
$(this).parent().prev().toggleClass("top-level-highlight");
});
Updated fiddle:
http://jsfiddle.net/LSmfN/14/
There's no way for the menu to know which page it's on without either the server setting the active menu element, or JS indicating the active element.
Here's what you can do - add a class "here" to indicate the current position:
ul#topnav li:hover, ul#topnav li.here {background: #f3f3f3;
Detect the current page using js:
//var here = document.location+"" //for production
var here = "/home.html" //for testing
if(here.indexOf("home.html")>-1) {
$('ul#topnav li').eq(0).addClass('here')
$('ul#topnav li').mouseout(function() {
$('ul#topnav li').removeClass('here')
})
} //repeat for all pages

Resources