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.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

What could possibly explain the fact that CSS lacks a way to style the whole “column” in a table? [closed]

You know when you move your mouse cursor over a table full of cells, and how the background for the row changes to make it easy to keep track of where you are horizontally? Well, I always wish that ...
0
votes
0answers
11 views

Input area with auto deletion of overflowed input text [closed]

I am making a website which has an interface where you can type some commands. So I want to store only last visible lines (hoping to be efficient) and also I want to report the updates on it, and ...
3
votes
1answer
50 views

How to redirect to style sheet after switching domain names?

We have switched domain names from example.com to example.org . I have set up a general 301 redirect for all of the site URLs in the .htaccess file on the example.com server and all the pages are ...
1
vote
2answers
31 views

Could styling <abbr> tag with CSS penalize SEO?

I heard that styling <strong> tag with css (for example to make in in normal font weight) could lead to penalties in ranking. I am wondering if I can css styles <abbr> tag without be ...
1
vote
0answers
24 views

how to delete old wp-ajax row

i was using side cart plugin on my website. here: https://wordpress.org/plugins/side-cart-woocommerce/ i noticed that, the plugin charges heavy process on my web site so i decided to remove the plugin....
0
votes
1answer
165 views

How to manually add expire header for google fonts css files? [duplicate]

i am trying to boost my website, but when i look it on gmetrix it says following statement There are 6 static components without a far-future expiration date. https://fonts.googleapis.com/css?...
1
vote
1answer
17 views

Is there a CSS or JS solution to stop bad word wrapping arround images on mobile?

I have a blog post here which works fine on a larger screen but not so much on a smaller one. As you can see from the screenshot below the paragraph breaks very poorly around the image. Given how ...
0
votes
1answer
49 views

Switching between alternate CSS stylesheets - what are all the available settings?

What are all the available settings for stylesheet <link> elements? When deploying CSS stylesheet <link> elements, what are all the available settings? A persistent stylesheet looks like ...
1
vote
0answers
10 views

How can I make this type of outline-type menu? [closed]

I really want to add this kind of expandable outline-type menu to my website. I've seen it before in digital help manuals, but I've never seen one online. Each item would link to a page in my website. ...
2
votes
1answer
41 views

Why are my Tag Manager triggers never firing when I set the condition to “matches CSS condition”?

In Tag Manager, I set up a Link Click trigger with these conditions: Click Classes > matches CSS selector > .amazon-button But for some reason, when I click on an Amazon button, the trigger never ...
1
vote
0answers
16 views

Are there SEO repercussions of using ::before selector to add content to the page?

I'm working on a website where I don't have full access to the code. I'm having to use a ::before content selector to add a sub-header. Are there any known SEO repercussions from doing this? ...
1
vote
1answer
33 views

Not Hiding but REMOVING content for mobile

I understand using media queries and display:none to hide content for mobile. The problem is that the content still downloads. I found this older post that has a similar issue, but hoping for more ...
2
votes
2answers
118 views

Numbered lists using <h2> and <h3> tags impact on SEO

I have several blog posts with list or a series of steps. I.e., 1. First Item/Step blah, blah, blah 2. Second Item/Step blah, blah, blah 3. Third Item/Step blah, blah, blah These steps are ...
0
votes
1answer
15 views

Is there a text editor that auto reloads the page in the browser as I type? [closed]

I'm new to web design and working on some complex CSS and currently I'm working with the dev tools in FireFox and tweaking the CSS there then switching to Sublime Text to retype the altered CSS. Is ...
0
votes
0answers
9 views

(HTML) need a (b:if cond) for image links (repost) [duplicate]

i'm working on a photo blogger, and i upload 100 pictures a day, i can't remove hyperlink for per picture, i only want to remove picture hyperlinks or disabled left click. so i'm using a CSS that i ...
2
votes
1answer
96 views

Is there a purpose for CSS media queries using mobile DPI resolution?

Often see people give DPI resolution on his Media Query for mobile. What is it for? Does it serve a purpose? Do we need it? I normally build my media queries for all devices (desktop, tablet and ...
2
votes
0answers
26 views

Recommend Method for Showing Filtered Data?

Let's say you're displaying a list of products and you can filter the products by different attributes. The filtering is purely front end. Is it recommended to put all the products in the HTML and use ...
2
votes
1answer
41 views

Is a child element set to visible while its parent set to hidden bad for SEO?

To modify the style of a component within a framework, I need to set the visibility of the parent container to hidden and the visibility of its child that contains the content to visible. Is that bad ...
3
votes
1answer
26 views

Can robots.txt be used to prevent bots from seeing lazily loaded content?

Let's say that googlebot is scraping https://example.com/page. example.com has a robots.txt file that disallows /endpoint-for-lazy-loaded-content, but allows /page /page lazy loads content using /...
1
vote
1answer
488 views

Problem with padding on Firefox and Chrome

I am trying to make a responsive website (Desktop, Tablet, and Smartphone), and I would like to show it in different browsers. This is how I built my links with nav-element on my html site: <nav ...
1
vote
0answers
21 views

Background Color - breakpoint for mobile [closed]

Trying to help for a page - https://example.com/. If I scale my desktop browser - smaller like I'm trying to view as a tablet/phone ..the header has a red background... How can I make the full ...
5
votes
3answers
70 views

Does rendered HTML from an angular app need to be styled and pretty when shown just to search engine bots?

I have an angular app, and while google does index those now, many other sites do not. I have built some middleware that intercepts requests from crawlers and serves static HTML pages that those ...
2
votes
2answers
33 views

How does google treat h1-3's that are styled to be smaller than a lower class of heading?

For example: You have you h1 <h1>Epic SEO Keywords</h1> then right below <h2 class="Massive text">Enjoy the future of you, visualise your dreams</h2> Will Google render ...
2
votes
1answer
176 views

How can I combining many external Javascript scripts into one?

I check my website using gtmetrix and my website is recommended for fewer HTTP requests and reduce DNS lookups. So I must to combining combining many external Javascript scripts into one In my layout ...
5
votes
2answers
386 views

AdSense units don't respect CSS margin rules

I just noticed that on sites with "auto ads" enabled, auto-placed AdSense units don't follow CSS rules regarding margin or padding in mobile view. They display across the entire viewport instead of ...
0
votes
3answers
55 views

Where do I put my static HTML and CSS files when migrating my site from Joomla?

I previously made a website with the Joomla CMS. Once it was online, I started over from scratch to re-do my website using only handwritten HTML/CSS (and a little of JavaScript). My question is: How ...
0
votes
0answers
11 views

Processing iframes reliably when webserver can only handle one request at a time

I'm trying to serve HTML from a web server made in MS-DOS that is capable of processing one web request at a time. I made some HTML in which two iframes must be loaded. I use iframes because ...
1
vote
0answers
80 views

How to fix Mobile Usability Issues (page resources are not loaded) in Google Search Console

Our website is responsive but it is showing the below mobile usability issues at Google search console. 1. Content wider than screen 2. Clickable elements too close together 3. Text too small to read ...
-1
votes
1answer
31 views

How do I keep a raw HTML version of my website alongside one with CSS styles and classes applied [closed]

I am in the process of making a simple website with informational content and I am interested in keeping a raw html version of my website (that is without any divs or other things that are used to ...
1
vote
0answers
21 views

Selecting a forms “select” option based on referring URL [closed]

I have a seemingly simple question that I can’t find an answer for. Scenario: I am developing a ”single-page” website based on a HTML5 UP! template that shows/hides content after clicking a button ...
0
votes
1answer
130 views

MediaWiki destroys CSS aesthetics for <code> tag

In MediaWiki:Common.css I gave these essential directives: code { display: block; } then I created an article with this content: <code> <x> <y> <z></z> ...
1
vote
2answers
649 views

Is it bad for SEO to use CSS to hide the H1 tag for mobile visitors?

I have a slider which is hidden by 'display:none' when viewed on mobile phones. This slider contains our H1 tag. Is this bad practise? The H1 tag itself is not hidden, but the div containing the ...
0
votes
1answer
76 views

Have you ever worked with a vertical viewport as webmasters? Or only with horizontal one?

Have you ever worked with a vertical viewport as webmasters? Or only with horizontal one? All CSS literature I ever read is on (horizontal) viewport; as in @media screen and (min-width: 959px). To me ...
0
votes
1answer
49 views

MediaWiki: How to delete the about page?

in a MediaWiki project I don't need the automatically created About webpage because in this case the homepage already covers the about details of the project. I can delete any webpage but for some ...
0
votes
1answer
333 views

Trying to determine why same font on two sites renders differently

Issue Two web sites have the same font, set up with the same typography. Yet they render differently. Background I need to replicate the typography from site #1 ("Sample Site") to site #2 ("Client ...
1
vote
1answer
658 views

Custom font not loading

I am looking to use the old "phone book" font for a project I'm working on currently, I have the fonts and was able to set up a stylesheet for them: http://interlinked.cf/css/bellgothic.css @font-...
1
vote
1answer
3k views

Does Google index/crawl display:none divs? [duplicate]

My website has a message on the index file and it will be shown on a special condition. When I search for my site via keywords, google search shows the message. My code looks like as below <div ...
0
votes
2answers
33 views

Is it possible to download all website Elements from a CSS Stylesheet? [closed]

I have just been asked to look at a website and see if there are any ways to improve its Page Load speed. I have identified that there are a lot of duplicate CSS Entries, across a lot of separate CSS ...
4
votes
0answers
98 views

How to make a site built with google.sites read right to left for Arabic language?

I have google.sites in Arabic, and I'd like to make it right to left so that combination of Arabic-English can be displayed correctly on each line. This can be achieved by adding direction="rtl"‍‍ to ...
0
votes
2answers
488 views

Is “overflow hidden + javascript scrolling control” affect SEO

I have an html page with a css overflow:hidden affected to body My <content> is at top:100% positioned in absolute. When I scroll, a javascript code change the <content> top position to ...
1
vote
1answer
46 views

SEO impact of usage of many spacers/formatters/… class in HTML instead of in css static file

We're working on redesigning our full website, we have a critical impact on our business from SEO. We are trying to use a lot of formatters, spacers, etc classes from SASS like suggested by bootstrap. ...
2
votes
1answer
148 views

Loading multiple pictures as sprites?

I've read it's a good idea to combine images as sprites (and use background positioning) to have less dns lookups and therefore speed up your site. But it seems all the images are loading ...
2
votes
0answers
84 views

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

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?
2
votes
3answers
2k 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 ...
1
vote
2answers
153 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 ...
1
vote
1answer
134 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
20 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 ...
6
votes
1answer
5k 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
215 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
73 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
2 3 4 5
13