Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [css]

CSS, short for Cascading Style Sheets, is a language used to control the presentation (including colors, layout, and fonts) of HTML and XHTML documents.

0
votes
0answers
4 views

Need a small help with the custom shopify theme product quick-view script code? [on hold]

I have a limited knowledge of working in HTML/Scripts coding. I have a custom theme which has got the quickview option and it is not showing the stock availability as expected. From my own research, ...
2
votes
0answers
17 views

Mobile-Friendly errors from JS/CSS folders in Google Search Console

Google Search Console is warning me about Mobile Friendly errors. But all the errors are coming from the assets folder where I keep my CSS and JS files. Can anyone can help explain these errors?
0
votes
0answers
11 views

Html and Css login form issue [on hold]

I am designing a simple login Form but i have 3 issues in it. The background color black of H1 needs only where the font is and i need it transparent ( only the background color not the font). 2 . ...
1
vote
0answers
16 views

JavaScript and CSS cached and not updating not updating from WAMP server even though “view source” shows most recent file

I have a WAMP server with PHP 7.2.10. When I change a file, for example .css, the changes is not visible in browser. When I "view source" via my browser (ctrl+U) I get the updated latest version of ...
0
votes
0answers
14 views

Inherit font-family property if font not available [migrated]

I'm trying to get something like this to work: body { font-family: Verdana, Arial, sans-serif; } p { font-family: Helvetica, inherit; } Basically if "Helvetica" is not available on the ...
1
vote
2answers
36 views

Does having a <span> tag around a portion of a word hurt SEO?

If I do <h1>H<span style="font-size: 12px;">ello</span> W<span style="font-size: 12px;">orld</span></h1> Will search engines read it as "Hello World"? Will this ...
0
votes
0answers
4 views

How do I properly set my background position when working with a sprited image? [migrated]

I am working on the nav element of my website and I wanted to add some images as clickable links in a vertical list that could be used as my navigation element: <nav> <ul style="display:...
0
votes
0answers
3 views

CSS - text and background color into a table [migrated]

I have a table and I want that the content of a cell and its background changes the color when the mouse hovers on it. So I have tried the following CSS <style> td { background-color: ...
-1
votes
0answers
10 views

Why can't I type directly into the HTML with FF Dev Tools? [closed]

Hopefully this question isn't too oddly specific. Let me know if it belongs on ProWebmasters instead... I'm making some mock-ups in Photoshop, using screen shots from the site in its present state as ...
1
vote
1answer
45 views

GTmetrix complains of un-optimized images in responsive design

The website GTmetrix is giving me low score on "Optimize images" for the following reason: On my main page I have 4 columns with images. Each column takes 25% of the screen resolution so on my ...
1
vote
0answers
18 views

Using web-fonts on Wordpress.org site [closed]

I am trying to use a font I found from the internet on my website, however after many attempts it just doesn't work and the words go back to the standart "Times New Roman" font. I have successfully ...
4
votes
1answer
222 views

Google Mobile Usability says “Content wider than screen” even though I can't reproduce that locally and X overflow is set to hidden

Unable to fix error Google Mobile Usability > Content wider than screen in Google Search Console. I have try chrome mobile layout emulator from DevTools, set width to 320px but no horizontal scroll ...
3
votes
1answer
64 views

How to hide HTML tags from SEO spiders

I understand and know how hiding things from your website works and how the search engine spiders will still be able to ¨see¨ this hidden element and penalize your website for it. Thing is, I did not ...
0
votes
2answers
50 views

Will random text and links hidden by CSS around our content to prevent it from being crawled and parsed prevent Google from indexing those pages?

I have a Q/A website which is lunched for about 3 months. I don't know why the single pages will not be indexed in the google. For example when I search for جهت مستفیض شدن از ماه محرم, I will see the ...
1
vote
0answers
21 views

Google Search Console fetch and render says CSS, fonts and images are “Temporarily unreachable” [duplicate]

I have requested that Google index (Fetch and render in Search Console) my website on 4th August 2018 but still it didn't get indexed and it is stating that some scripts, style sheets, fonts and ...
1
vote
2answers
57 views

SEO impact of changing versions (and names) of external CSS

A website of mine uses a WordPress plugin for CSS minification. The plugin regenerates the CSS file on every update to the style-sheet. When it does, the plugin also changes the version and hence name ...
3
votes
1answer
34 views

Problem with .htaccess for files having similar kind of names

I have a file with name lang.php and another file in the same folder with same lang_inst.php. The .htaccess am using is: RewriteEngine On Options -Indexes RewriteCond %{REQUEST_FILENAME} !-d ...
3
votes
0answers
41 views

What is the name for a paginated scrolling effect with distinct stopping points in the scroll?

For example: http://deppo.tkdemos.com/portfolio/grid-references-in-the-latest-issue/ What is the name of the scrolling effect used on the link above? Where when you scroll or arrow down the page ...
1
vote
0answers
18 views

fonts.googleapis.com called before every heading - is this normal? [closed]

I'm seeing this behaviour in one of the websites I manage: <link href="//fonts.googleapis.com/css?family=Abril%20Fatface:regular" rel="stylesheet" property="stylesheet" type="text/css" media="all"...
3
votes
1answer
47 views

Using mySql database data directly into generating articles for my website? (newbie, needs to know where to start))

Hi all I am fairly new to web development, I've made a couple of my own sites over the years with simple html tables and free webhosts. This time, I have decided to try to host my own site using WAMP ...
1
vote
0answers
121 views

How to remove form autofocus on a Twitter Bootstrap form

I'm using Bootstrap on a site. Bootstrap is loading via a cdn. I can't edit the code directly. How can I remove the form auto focus? When I visit the page it automatically jumps down to the bottom of ...
0
votes
0answers
10 views

All webpages broken in Google Cache but not when Fetching/Rendering Pages in GSC [duplicate]

All pages of my website appear to be broken in Google's cache. Can't seem to figure out exactly why. I've read some threads about relative vs absolute stylesheet hrefs and I think mine are all ...
1
vote
1answer
22 views

Why is the Chrome Developer Tools interface cropping my page? [closed]

This doesn't seem to be a common problem as I haven't found anything related. Chrome(Chromium in my case) DevTools seems to be behaving strange for me. It is cropping the right side of my page. ...
1
vote
0answers
12 views

Weird response from website buttons [closed]

I'm building a website using html, css and JavaScript. I'm having issues with the buttons on my page, where I have to press them twice to activate them, after that they work fine. It appears that this ...
0
votes
1answer
18 views

How would a client edit the website? [closed]

I am wanting to start creating websites for clients but am wondering on somethings. This one I do not know how to put into Google to get the results I want so I am asking here. I do HTML/CSS site ...
0
votes
0answers
12 views

Hiding text with display:none - effects SEO? [duplicate]

I've build an FAQ page and to avoid clutter, by default - only the first answer is shown, users have to click on other questions to see more (toggle). I've been told by our SEO person to not have any ...
0
votes
0answers
7 views

Are the names of CSS selectors picked up by Google or impact SEO in anyway? [duplicate]

I don't know if this is is relevant but are the name's of my CSS selectors relevant for SEO in any way? As far as I am aware they can be named anything and are only used by the developers. Would ...
0
votes
0answers
16 views

Getting the same site to show with a different domain extension in Google

We have one site: sitea.co.uk We also own the domain: sitea.com (redirects to sitea.co.uk) We want US visitors to see sitea.com both in the browser and in Google when searching for our company ...
0
votes
1answer
14 views

CSS Selector Best Practice [closed]

When writing CSS, is there any reason to prefer shorter, more elegant selectors over longer, more comprehensible ones? I'm looking for technical, not personnel, reasons – processor hits and whatnot. ...
1
vote
0answers
111 views

How can I make my socket.id/nodejs server serve CSS files with the correct mime-type?

I'm using socket.io and https://socket.io/get-started/chat/ to produce a very basic chat server on a remote desktop running Debian. When I access the server's "main" page on port 3000, it fails to ...
2
votes
1answer
48 views

Will having a poor print page format hurt SEO?

I have searched to try and find out if there is any connection between the "print page" and SEO rankings and Google's indexing of the site. To me, it seems like the websites which have messy layouts ...
0
votes
1answer
268 views

Will this hidden element be count as SEO Spamming? [closed]

As you know, search engine robots sometimes count invisible elements as SEO spam. I have a website that i want to improve SEO performance. I'm planning to make homapage as like below. Will this be ...
1
vote
1answer
22 views

Explain me some CSS [closed]

Newbie to CSS. I don't get why :before and :after are used. Can I get some easy explanation,please?
0
votes
2answers
177 views

Responsive web design causes social media buttons to overlap the logo on smaller screens [closed]

I haven't developed a website in quite some time, and am currently working on one for a friend's small company. I put together a simple design, and have been able to get the content itself to be ...
1
vote
0answers
40 views

What is it called when an HTML block floats while scrolling down the content until something else takes its place?

Recently updated my blog and was looking for the improvements they have added. I noticed a floating section of text that stayed there until a part of description ended. (Similar to the timestamp on ...
2
votes
3answers
30 views

Page-specific skins in MediaWiki?

Is there a way to force a particular skin to be applied while displaying specific MediaWiki articles? In my wiki many articles will have a "flip" version with alternative content (think "good" and "...
0
votes
0answers
21 views

What are standard pixel widths a webpage would use for device detection? [duplicate]

What specific pixel width (or height) values should I use to distinguish between a mobile phone, a tablet, and a desktop using Media Query? Are there more professional methods than just pixel width ...
2
votes
1answer
247 views

Does Google care about cached versions of site having Stylesheet and JavaScript files?

I would like to know if having Stylesheets and JavaScript files available for old, cached versions of a site benefits SEO in any way. Currently I'm adding a hash of the file contents to the file name, ...
3
votes
2answers
456 views

Is using the <pre> tag for ordinary text in a page likely to impact SEO?

When coding pages by hand, I sometimes want to skip having to write all those <p> tags and use: <pre> <h2>Heading written as usual is no problem within a pre</h2> <i&...
11
votes
2answers
4k views

Should company name in logo be an image or text?

I'm putting a logo (comprising of an image and company name) on my website. I'm not sure whether to save the company name text as part of an image file, or to have it as actual text in the html and ...
6
votes
1answer
107 views

OpenType Variable Fonts: Supported Browsers

Variable fonts have been on the drawing board for sometime and Google just released Chrome 62 with support for these new fonts and looks fairly simple to use, e.g: font-variation-settings: 'wght' ...
1
vote
0answers
121 views

Is hiding <img> tag or set it in noscript SEO friendly? [closed]

Is it possible to make img tag display:none and then add it with CSS background? For example: <div style="background-image:url('image.png')"> <img src="image.png" alt="description of ...
1
vote
3answers
446 views

CSS parallax issue within Twenty Seventeen WordPress Theme

I hope this is the right place for this. I tried WP Developers but question was considered off topic. I’m using the Twenty Seventeen theme in WordPress (4.8.2) with a static front page with 4 ...
1
vote
1answer
57 views

CSS Linked Comments [closed]

How can I do this kind of comments using html + css? Best regards
3
votes
2answers
96 views

Can problems with inline styles in Google webcache text only view affect SEO?

I have a page that due to CMS requirements has an embedded background color style on an element that contains text <span style="background-color: #000">[text]</span>, the colour varies but ...
2
votes
2answers
321 views

Should I ignore W3 CSS Validation Service?

I just checked my site with W3 CSS Validation Service. It had more than 200 errors. Then I checked many sites including Stack OverFlow. Here is the results of Stack OverFlow. SO also has 108 errors. ...
0
votes
1answer
71 views

How do I use bootstrap's Darkly theme without external references?

I have used the bootstrap Darkly theme found here in the past, and it has worked great. This time, I'm developing a website that will be displayed to users when they connect to a wireless network. ...
0
votes
1answer
33 views

AJAX compatibilty [closed]

In 2015 Google stopped supporting their AJAX for Adsense program, So I've researched and developed tons of AJAX content. I understand the flaws so I'm striving for backwards compatibility. loadPage('...
3
votes
2answers
3k views

Best way to add a custom font to my site?

Based on my research, I found that there are 3 ways to do that which are: @import url ('https://..........'); in CSS @font-face {fonta-family: 'myfont'; src: url('myfont.tff');} in CSS <link rel="...
4
votes
1answer
315 views

Are Static Websites (HTML & CSS) Hack-Proof?

If a website uses HTML & CSS only without any server side language, does it make it Hack-Proof? Thank you