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
1
vote
0answers
26 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
58 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
400 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 ...
1
vote
1answer
30 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
18 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
23 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 ...
1
vote
1answer
25 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
20 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
184 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
124 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
822 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
28 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
486 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
1answer
60 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 ...
3
votes
3answers
59 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 "...
3
votes
1answer
458 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
1k 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&...
12
votes
2answers
5k 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 ...
5
votes
1answer
145 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
384 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
692 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
94 views

CSS Linked Comments [closed]

How can I do this kind of comments using html + css? Best regards
3
votes
2answers
133 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
685 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
300 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
36 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
8k 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
1k 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
3
votes
1answer
385 views

SEO for links duplicated and hidden for responsive design

I would like to know if duplicating some links in the menu for responsive purposes (display:none in some cases) can affect SEO. Simple example: <ul> <li><a href="/one">one</a&...
2
votes
1answer
522 views

Which one should I use for SEO proposes? <div>text</div> or <img alt=“text” />

I know that the alt="" attribute is recommended for SEO propososes, but I also heard that put the description inside a div and hide with text-indent:-9999px or font-size:0; is a good practice for SEO. ...
1
vote
1answer
198 views

Will using a pseudo element to place background image on top of an image tag for SEO value have negative consequences

Will using a pseudo element like before to place background image on top of an img element for SEO value have negative consequences? The reason being we want the flexibility of an element with a ...
3
votes
2answers
412 views

Does Google count external Javascript or CSS files as backlinks?

Is there any information available on whether search engines (Google) count external Javascript or CSS files as backlinks? Example: Does loading FontAwesome from their CDN count as a backlink for ...
1
vote
0answers
75 views

CSS Flaticons Show up all Black [closed]

I have been unable to resolve this. I downloaded icons and using the demo they all show up back when they should show up in a more colorful fashion What they should look like: http://www.flaticon....
1
vote
0answers
113 views

Using the Salient WordPress theme cuts the header logo cut in half [closed]

Problem: Logo appearing cut in half, and menu items chopped off - Theme: Salient 8.0.15 I have no custom CSS yet.
1
vote
0answers
42 views

Open Sans won't display bolder than 700 in Chrome [closed]

I came across a weird issue where everything displays fine in Safari, but in Chrome my H1 will not display bolder than 600. Even if I change it in developer tools - for this page http://station-...
2
votes
0answers
83 views

When the layout of my page gets jumbled after browsing the site, is the problem with WordPress or hosting?

I've had problems with the loading view of my site. Initially everything looks OK but after clicking on other pages and coming back to the Home page the slider and other elements are not showing as ...
2
votes
0answers
64 views

Backend of Prestashop Product Description Field hidden overflow

I've got a Prestashop 1.7.1.1 wherein the backend when you edit the product description with images, it doesn't overflow properly. I tried forcing the overflow in the CSS file overflow:scroll!...
1
vote
3answers
2k views

Is a huge style attribute bad for SEO?

I'm working on a website using wordpress. When opening Chrome's console (Ctrl+Maj+I), I couldn't help but notice a HUGE style attribute and tons of scripts directly written into the HTML document. ...
2
votes
1answer
340 views

Duplicate CSS files in Firefox Inspector

I'm wondering that why Inspector shows duplicate CSS as follows: What is the difference between Cause column: stylesheet vs JS stylesheet? UPDATE: Here some explanation. Seems like my css is ...
0
votes
1answer
1k views

Prevent font color from changing when hovering over child menu item [closed]

I'm baffling myself with this one. I have a main menu set up and when you hover over a menu item the background-color is #f2dabd and the color is #8d0000, however when i hover over a parent menu item,...
-1
votes
2answers
3k views

PHP website page loading is very slow in localhost [closed]

PHP website pages are taking very long time to load for huge data in localhost(using Xampp). The page loading becomes faster for less data. Could anyone tell why how this can be?
2
votes
1answer
249 views

Remote CDN: Pro's and Cons of grouping CSS and JS

I'd like to know the pros and cons of grouping external CSS and JavaScript files. The grouping method I'm referring to often seen by external libraries providers such as Google fonts and jsDelivr. ...
1
vote
1answer
358 views

Div changing css style using chrome develop tools not working? [closed]

I'm trying to change the CSS settings of a webpage, so it fits my use. Below, as seen, that extended display a div width of 1200. The HTML code and css looks like The HTML code and css looks like I'...
1
vote
1answer
3k views

Google PageSpeed Insights reports that bootstrap.min.css is render blocking

I'm trying to achieve an over-90 grade on PageSpeed Insights. My last error comes with bootstrap, Google detects the file bootstrap.min.css as a render blocker. The file is located in my server. I'...
2
votes
1answer
3k views

Force visitors to get newest versions of resources (bypassing browser cache)

How can I (force) my visitors on my website to clean their cache, and get the new updated content? I find myself sometimes linking progress on some of my projects and sending it to others for feedback,...
1
vote
2answers
594 views

Why does my element work on first click but not second click? [closed]

I set up a CSS dynamic snippet on my site and it behaving strangely, when you click on the icons it works, but if you click twice it scrolls up a few pixels up. Click on the 5 icons repeatedly and ...
1
vote
1answer
265 views

What are the safe web fonts and is there anyway around this problem?

How do you choose a font that will be both aesthetic and browser/OS friendly? I love Helvetica, but a lot of websites say that 90% of Windows users don't have it installed. What are the safe web ...
4
votes
1answer
2k views

How to avoid request of all images used for different devices using media query?

I want to know, how can I avoid loading all images I created for different devices using media query. Currently my mark up look like below : <img src="/media/1062/lg.png" alt="Fresh from ...
0
votes
1answer
12 views

Disabling highlighted search box [closed]

I made a search box using input html tag but while inputting when I click on the search box it is highlighted with blue border. How do I remove it ? Thanks
3
votes
2answers
21k views

Vertically and horizontally align div into parent div [closed]

I'm new in the web development industry and I struggle to vertically and horizontally align a child div in a parent div. I'm trying to build a homepage with a full-width image with a slogan in the ...

1
2
3 4 5
13