Questions tagged [css]
Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics (the look and formatting) of a document written in a markup language. Questions regarding CSS are off topic here.
434
questions
134
votes
2
answers
121k
views
How can I override the CSS of a site in Firefox with userContent.css?
In Mozilla Firefox, I want to create userContent.css which overrides the CSS of a site.
Where should I create the file (Windows 7)?
75
votes
5
answers
85k
views
How can I force my css styles when I visit a website?
Imagine I want to visit webmaster.stackexchange.com (or an other website) everyday but I want to change the blue color of header (change it to red for instance).
Is it possible to force personal css ...
50
votes
10
answers
85k
views
Change default CSS of Google Chrome
I would like to be able to change the default CSS used by chrome, such as removing the underlines for links, etc. However, I cannot find the default CSS file used by Chrome. Does anyone know where it ...
47
votes
4
answers
33k
views
Is it possible to view a page in Firefox using "print" media type?
I'm not talking of the Print Preview - I mean to view the webpage in Firefox "normally", with access to e.g. the F12 Developer Tools, but I want the layout to be the same as if I was printing the page ...
31
votes
1
answer
17k
views
Firefox Quantum (ver >= 57) - How Can I Hide the Horizontal Tab Bar with TreeStyle Tabs?
Tree Style Tabs is an excellent plugin and probably the main reason I use Firefox. With the newer versions of Firefox, Tree Style Tabs works nicely, but I can still see the same tabs duplicated across ...
30
votes
7
answers
106k
views
Is there any way to view a webpage without styles in Chrome?
Under Firefox, View -> Page Style -> No Style allows viewing an unstyled page. Helpful for some overly-JS / stylesheet dependent sites (e.g.: Lifehacker).
Is there any similar functionality under ...
27
votes
1
answer
74k
views
Modify Chrome user agent stylesheet [duplicate]
I would like to modify Chrome's user agent stylesheet. I am not looking for how to override them with CSS. I want to modify the default values and add some new rules that would help me speed up my ...
25
votes
4
answers
12k
views
Command-line CSS selector tool [closed]
Question
What tool (preferably for Linux) can select the content of an HTML element based on its CSS path?
Example
For example, consider the following HTML document:
<html>
<body>
&...
25
votes
1
answer
5k
views
Why does CSS3 use two names for the same color: aqua = cyan, magenta = fuchsia?
Why does CSS3 duplicate
#00ffff = 0,255,255 and
#FF00FF = (255, 0, 255), spotted by this user?
This duplication confuses, as each is listed separately on the aforementioned CSS3 link.
20
votes
3
answers
14k
views
Different language syntax highlighting within same file
I'm trying to get simple syntax highlighting working within a file. Here's the setup.
I have an index.php file, which Notepad++ correctly highlights any PHP code between the <? and ?> tags. ...
19
votes
5
answers
12k
views
Is there a way to disable custom webkit scrollbars?
Is there an extension, custom user stylesheet, etc. that will disable or revert the customization of scrollbars in Webkit based browsers like Google Chrome? I like the plain, native scrollbars but I ...
18
votes
3
answers
12k
views
Safari Web Developer Tools?
Where do you enable web developer tools in Safari on windows? I can't find it anywhere. A quick web search found some really complicated instructions that felt more like a hack then turning on a ...
15
votes
1
answer
756
views
colors and vim with css
I started to use vim on Ubuntu for web development. Now, I have a visual issue when I use media query CSS when I put resolutions
As you can see the first media screen is working properly but not the ...
13
votes
3
answers
2k
views
Understanding CSS for user styling in a browser
I want to make a specific change to the appearance of a specific site in my web browser. This site uses CSS, so I think what I should do is write a user CSS override (please correct me if this is ...
13
votes
4
answers
44k
views
How to take a CSS animation from a browser, and export a GIF of it?
I have the following CSS3 Animation going on: http://dabblet.com/gist/2884702. It's basically a simulation of a mirror rotating on its x-axis.
Now, I wish to present that in a PowerPoint presentation....
13
votes
5
answers
27k
views
How do you use WGET to mirror a site 1 level deep, recovering JS, CSS resources including CSS images?
Pretend I wanted a simple page copy to be downloaded to my HD for permanent keeping. I'm not looking for a deep recursive get, just a single page, but also any resources loaded by that page to be also ...
12
votes
3
answers
5k
views
What do italics in Chrome devtools elements mean?
I'm looking at the elements in the hamburger menu of this site:
https://rainbowedit.com/
using Chrome devtools, and the CSS in Elements is in red italics and uneditable. What does this mean? Is ...
12
votes
1
answer
23k
views
Enable HTML5 tags on Eclipse
I really love Eclipse (PDT)... But i'm developing sites using HTML5 and CSS3 and it mark the HTML5 tags like <nav>, <section> and <article> as invalid tags (inexistent).
How can I ...
10
votes
3
answers
28k
views
Is there a way to export Word styles as CSS?
We have a standard document template in word for internal documents. The Graphic Design / Technical Writing staff have all the styles rigged such that we don't have to do any formatting ourselves.
...
9
votes
1
answer
4k
views
Custom per-site stylesheet extension for Firefox
I'm looking for an extension what will apply a specific stylesheets to specific websites. For example googlestyle.css would go with Google.com and superuserstyle.css would go with superuser.com.
9
votes
1
answer
32k
views
How to apply external CSS stylesheet to document in Microsoft Word?
I want to be able to apply an external CSS stylesheet (standardstyles.css, e.g.) to the current document in Microsoft Word (2007). I've pored over the Styles menu, looked in all the classic formatting ...
9
votes
3
answers
23k
views
Import HTML table with CSS to MS Word
I have created a table below using R with HTML code attached at the end of the question.
The default output from R fits perfectly my need, but I need table to be shown and editable in MS Word. I ...
8
votes
3
answers
22k
views
Safari 5 extension for site-specific CSS customisation?
Is there a Safari 5 extension along the lines of Stylish? Basically a way to quickly install or create site-specific CSS files.
8
votes
1
answer
3k
views
Make pandoc ignore css style class
I'm trying to convert an HTML file to Markdown using Pandoc, but I'm having a hard time finding the correct options.
I would like convert the entire HTML file to the simplest Markdown possible. That ...
8
votes
1
answer
5k
views
Complete userChrome.css specification in Firefox
There were already tons of questions about Firefox's userChrome.css file. Most of these stem from the fact that apparently there isn't a complete specification for this file from Mozilla, a complete ...
7
votes
4
answers
16k
views
How to get Firefox Greasemonkey script to use a local cascading stylesheet?
What's the correct syntax to link to a CSS file in the same directory as a Greasemonkey JavaScript? I've tried the following but it doesn't work:
var cssNode = document.createElement('link');
cssNode....
7
votes
7
answers
6k
views
Hide webpage headers that remain "stuck" at the top when scrolling
For a long time, headers that remain "stuck" at the top of the page have bothered me. Here is the latest example I have run into:
Website before scrolling:
Website after scrolling down a ...
7
votes
2
answers
31k
views
How to display "Comic Sans MS" in Linux?
I use "Comic Sans MS" font on my web page. The web page looks OK if I open it under Windows and MAC. But it does not work under Linux. How can I solve this problem? May be I can put the font on my web ...
7
votes
3
answers
2k
views
Emacs CSS modes - most feature complete and maintained?
According to EmacsWiki there are bunch of CSS modes for Emacs, but none of them seems to be very actively developed or even that feature complete. Which one is the most feature complete so far and is ...
7
votes
1
answer
2k
views
Thunderbird userChrome - change sub folder and parent folder color with unread messages?
I have the following in my Thunderbird userChrome.css file:
treechildren::-moz-tree-cell-text(subfoldersHaveUnreadMessages-true) {
color: blue !important;
}
treechildren::-moz-tree-cell-text(...
6
votes
3
answers
29k
views
How to calculate "line height" from psd file?
I have a .PSD and I am trying to convert it to HTML/CSS.
I can't calculate the line height in CSS from the .PSD.
How can I calculate the line height from the leading?
6
votes
2
answers
16k
views
Google Chrome with real-time CSS editing and save changes back to original file. Is it possible?
One of things I love of modern browsers is how you can edit the css and get to see the results in real time. Often when designing frontend elements, I find myself adjusting many css properties ...
6
votes
3
answers
10k
views
Can't scale Google Crome lower then 500px width
I started programming about 6 months ago. When I started I was able to scale my google chrome down to a 400px width. As I started to max more website I was only able to scale my website down to 438px. ...
6
votes
1
answer
26k
views
I can't edit CSS with Inspect Element in Google Chrome
I used to rely on Google Chrome Inspect Element → Resources Tab → Stylesheets feature where I would double click anywhere in the css source and I could edit it with live rendering in the page.
It ...
6
votes
1
answer
2k
views
Is there a way to customize the CSS of Firefox Reader View?
I love Firefox Reader View. But not its fonts. More specifically, these are not the best choices:
body.serif, body.serif .remove-button {
font-family: Georgia, "Times New Roman", serif;
}
body....
6
votes
1
answer
16k
views
Print From Browser Using Screen CSS? [duplicate]
is it possible to ask a browser to print using the screen CSS rather than the print CSS?
5
votes
1
answer
5k
views
uBlock - create filter based on pattern of an attribute such as div[data-link.contains()]
I would like to hide news links to rt.com from duckduckgo. I can create a filter for a particular link, like
duckduckgo.com##div[data-link="https://www.rt.com/news/487829-germany-gru-warrant-hacker/"]...
5
votes
3
answers
5k
views
Browser where I can add my own custom CSS or Javascript
Is there a way to load my own custom CSS or Javascript while using a browser?
When I'm accessing a website or developing a website I want to load my own custom scripts from my computer. I know this ...
5
votes
5
answers
10k
views
Is there a plugin/extension to disable CSS on certain sites and not others when browsing?
Is there a plugin/extension to disable CSS on certain sites and not others when browsing?
Sort of like the ability featured in web dev toolbar plugins, but selective and automatic.
Any ideas?
5
votes
2
answers
3k
views
How to remove the close (×) button from Eclipse Juno tabs?
Is it possible to remove the close button from main editor tabs? I've heard there is a new UI model in Eclipse Juno (e4) that uses CSS for tuning, so is it possible to write some CSS to remove close ...
5
votes
2
answers
8k
views
Change Firefox theme locally with CSS (without any extension)
I have some modifications I want to make WITHOUT installing extensions.
eg: max width of tab and height of menu,
In previous versions you could have it done via:
about:config ->browser.tabs.tab....
5
votes
2
answers
5k
views
Disable CSS animations on Firefox
I found CSS animations to be slow and most of the time useless. They make website feel heavy and laggy especially if I'm already using my CPU for other tasks.
Therefore, I would like to disable CSS ...
5
votes
2
answers
887
views
How do you change the colour of the FF4 menu button?
I am looking for a way to change the background colour of the menu button on the FF4 beta and to place it on the tab bar simultaneously.
I have achieved the latter effect using various Stylish user ...
5
votes
2
answers
7k
views
LESS and CSS3 syntax highlighting
I found this post on SU, but it doesn't seem to address my needs exactly, so I'll ask a similar question. I normally use PSPad, and I'm also not too scared of Notepad++. They are both good editors, ...
5
votes
1
answer
160
views
Why does a webpage miss formatting sometimes?
Sometimes, a webpage gets loaded in the browser but it is not displayed properly. All the elements of the page are there, but they are not there where they should be.
for example (A,B and C are three ...
5
votes
4
answers
7k
views
How to display line numbers in Firebug?
I think either it's not supported or I'm just too stupid. In this case I'd prefer the last one. I'm using Firebug to do my .css editing. Now I've got the problem that I've got to edit some pretty big ...
5
votes
3
answers
1k
views
Disable content-type detection for CSS types in Firefox
Background
When connected to the corporate network, certain firewall rules are changing the content type of CSS files from text/css to text/html.
Problem
Changing the media type for CSS files to HTML ...
5
votes
1
answer
4k
views
Disabling fancy animations for heavyweight websites
I am currently using a low end laptop with the Chrome browser and sometimes I stumble upon a heavyweight website that I want to visit. (for example: http://www.recalbox.com/).
Chrome on my laptop can'...
5
votes
2
answers
4k
views
Sync Stylish styles across Chrome and Firefox
Is there a way I can set the path of the Stylish addon for .sqlite file for Firefox and Chrome to the same location? In Firefox I know it's in the extensions.stylish.dbFile config, but I have no idea ...
5
votes
0
answers
3k
views
Changing text and background colors only for plain text emails in Thunderbird
I managed to tune Thunderbird to darker scheme for everything except the messages, so it looks like this:
I tried changing colors for messages in Options - Display - Colour, but regardless of Allow ...