Tag Info

Hot answers tagged

4

Your goal is excellent, and I think the approach you are looking for is already existent in CSS as @media and display. One option HTML <a href="#" class="menu_links"><span class="hidetext">Graphic </span>Design</a> CSS @media screen { span.hidetext { display: none; } } @media aural { span.hidetext { display: inline; } } ...


3

CSE is a bit tricky to tackle down. Often you need to use a more specific target, or use !important to force styles. Technically it should only need this rule (test will turn it red) but the CSE box is heavily styled by Google. Try this first: #___gcse_0 input[type="text"] { background: #F00 !important; } If that doesnt work, try combing it with a CSE ...


2

The alignment issues is caused by white-space removal. This would cause small alignment issues in most browsers because a carriage return will fill in a non-block elements. If one were to remove the carriage return from a span it would condense. If you add a carriage return it will expand. Without seeing code one can only speculate.


1

That doesn't sound like a good idea at all. Google isn't likely to be keen on the bilingual content (as it sees it), and there's also the issue of people using old web browsers that may not have JavaScript or CSS support. I suggest finding a way to separate the content into separate URLs.


1

Should be a comment, but can't highlight this enough: Never purposely serve different content to bots.


1

I would tend to go with something like option 4), but instead of using javascript to actually remove <h1> from the DOM after onload, I would apply a new color style declaration to <h1> (in this case, one with 0% opacity). Something like: <script> function changeH1Color() { var heading1 = document.getElementsByTagName('h1')[0]; ...


1

CSS is rendered in the order it's received. For example, if your first CSS file says: Body{background-color:blue;} and your second CSS file says: Body{background-color:red;} The background will be Red because the second file overwrote the first. In short move your gitup down. Without seeing the JavaScript file, it is probably using a ...


1

Thanks for all who replied. I found the solution explained in this link as the most useful approach to customize the google CSE search box. You can use the FORM tag as follows, and use any CSS customization on that tag div. <div class="top-search"> <form method="get" id="searchform" id="searchbox_XXXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYY" ...


1

It is normal for sites to look a little bit different in cache view. The cache usually tries to load resources from your server. This is problematic when: Users are using the cache because your site is down or slow Resources are not permitted by the browser to be loaded cross domain The latter may be the problem with fonts. It sounds like you found ...


1

Reconfigure your localhost server to use port 80 not 8888, your virtual host is using port 80. Or in your wp_options table change your home_url and site_url to use port 8888. Whichever you want to use bot your server and WP have to point to the same port.



Only top voted, non community-wiki answers of a minimum length are eligible