FAQ Database Discussion Community


Linking external .css file to Html page

html,css,stylesheet,href
I'm having trouble linking my external file sheet to the separate html page. The .css file and html file are in the same folder also but when i run it the content is only appearing. Any help is appreciated. Thanks! CSS Code div { border-radius:5px; } #header { z-index:1; width:97.%;...

QPushButton dimensions change when Stylesheet is apllied

qt,qt4,stylesheet,qss,qpushbutton
When I apply a style sheet on QPushButton its dimensions change. This is my style sheet declaration. QPushButton { background-color: rgb(175, 187, 199); color: black; border-width: 1px; border-top: 1px solid white; border-left: 1px solid white; border-right: 1px solid grey; border-bottom: 1px solid grey; border-style: solid; border-radius: 5; padding: 3px; padding-left:...

External stylesheet (css) in php

php,html,css,stylesheet,external
I have looked through 4-5 post on stackoverflow regarding this without solving my problem. I have a php file and want to use the css stylesheet I have for the other HTML files. Right now it looks like this: <div style="height: 600px;"> <?php echo "<link rel='stylesheet' type='text/css' href='stylesheet.css' media='all'/>"; session_start();...

Stylesheet switcher button to toggle html when clicked (jQuery)?

javascript,jquery,html,css,stylesheet
I have a button at the top of my page that enables the use of a separate stylesheet for printing, I have a normal print.css that enables everything when printing and I have a acrfprint.css which just prints certain elements out. Someone on here gave me some help getting this...

stylesheet not working online but offline

css,stylesheet
This website http://gem19.ir/ seems not loading stylesheet. When I save it locally, everything works fine. I have checked there is no bug or error reported in console. Is there any syntax error or other serverside reason? this is the line that css is imported: <link rel="stylesheet" type="text/css" href="catalog/view/theme/farsi/stylesheet/stylesheet.css" /> ...

Rails 4 - Stylesheets from public folder

javascript,ruby-on-rails-4,stylesheet,assets
I have a problem with including stylesheets and javascript files from public folder into my project. I do it in following way: <%= stylesheet_link_tag '/public/dist/css/AdminLTE.min.css' %> Unfortunatelly I've got an error: ActionController::RoutingError (No route matches [GET] "/public/dist/css/AdminLTE.min.css") Can u tell me how to solve this?...

CSS Triangles in React Native

reactjs,stylesheet,react-native
I'm working on an app that uses triangles that overlay other containers/divs. Had that solved with CSS before: .triangle:after { content: ""; display: block; position: absolute; top: 15px; left: -15px; width: 0; border-width: 0px 0px 15px 15px; border-style: solid; } but that doesn't work in React any more. What's...

Styling Divs with css

css,stylesheet
Whats the best way in order to style with css 3 div in this way: Div 1 and 2 (same width) one up and one down on the left side and div 3 on the right side. something like: div1 { height: 200px; width:400px } div2 { height: 600px; width:400px...

SASS Compiler for Bourbon

css,sass,stylesheet,bourbon
Is there another compiler besides using the Command Prompt to compile Bourbon files? Basically, I am using Koala as my SASS Compiler and I would like to try out using Bourbon with it and when I tried to import the bourbon into my SASS file and compile that file, it...

Add Css on a Html Class Tag With Jquery

jquery,css,arrays,stylesheet
I have a submit button which has a color red css style by default. How can I apply a css styling on it on the fly and seeing the result without refreshing the page using jquery? I have an oncheck query and I want to put the code that will...

Saving Custom Stylesheets for Any Website

css,google-chrome,customization,stylesheet,google-chrome-devtools
I know how to live-edit and save stylesheets for my own sites that I am developing locally. But wouldn't it be nice to be able to save your own custom styles for any website on the web? For example, I use a very cool, free chat system called tawk.to but...

TextArea styles in QML

qt,qml,stylesheet
I want to change the color of my TextArea object but I don't know how property can do it. I've tried with TextArea { styles: TextAreaStyle { borderColor : "green" } } or TextArea { TextArea.border.color : "green" } But both examples doesn't work. I can't found a single property...

external and local css gets ignored when rendering page to pdf using phantomjs

css,angularjs,node.js,phantomjs,stylesheet
I would like to know if there is a way to force phamtonjs to read/respect my css styles. Im currently using angular and ui-grid to generate a table and when a value in the table meets a condition(if value > 1000) it will get assigned to a specific css class....

Does ie read stylesheets outside of conditional comments?

html,internet-explorer,stylesheet,conditional-comments
I've been doing a bit of reading around this subject, and I can't seem to find an answer that specifically answers this question. Using this code as an example: <!--[if lte IE 7]> <link rel="stylesheet" type="text/css" href="ie-style.css" /> <![endif]--> <link rel="stylesheet" type="text/css" href="style.css" /> Would IE6 open and run it-style.css...

How to modify your CSS working with Mobile Angular UI and Bootstrap

css,angularjs,twitter-bootstrap,less,stylesheet
I know that my question has already a huge number of topics, but I think it could be helpful for the community to have a clear answer in one topic. This is about modifying your CSS while using Mobile Angular UI, with a bootstrap template. This is how a project...

Cant use media-queries (with the css) directly in my asp classic code page

html,css,media-queries,stylesheet
I've got a problem with my media queries. On my website I am using a frameset to show a form. This form is created in a asp (classic) file and also has its code in it. In my first attempt to launch it I had a link to my css...

QTimeEdit C++ delete padding

c++,qt,stylesheet,edit,qtime
I want to delete an undesirable padding on a QTimeEdit widget. Here is an example of my problem. ...

Read Style properties from external style sheet (from file)

javascript,jquery,html,css,stylesheet
I want to read the styles from class, and the styles are defined in external style sheet. Also I will add the external sheet dynamically. I can able to access if it is in same html file and if it is define inside the tag. function getStyle(className) { var classes...

HTML Elements in jQuery and CSS styling in jQuery [closed]

jquery,html,css,stylesheet,element
I am known to HTML and CSS. Now I am trying to learn jQuery. I want to know how to make a DIV in jQuery and then style it with CSS in jQuery? I have searched alot on google but cant find any help there. I hope you can help...

Style only one anchor link with class applied to li

css,styles,stylesheet
Struggling with this one but I'm sure it's quite easy! WordPress is applying a class "current_page_item" to the <li> that surrounds my anchor link in my side menu. I want to bold the current page item only. I have some sub menus being nested like so: <ul class="menu"> <li class="current_page_item">...

What is the difference between no-drop and not-allowed in CSS?

html,css,stylesheet
I was surprised to see that the cursor styles for "no-drop" and "not-allowed" are same in nature in CSS. So, why do we need them both?

How to use CSSStyleSheet.insertRule() properly?

javascript,css,stylesheet
I can't figure out where I'm going wrong here :/. When I run this code, all I get is a blank element. I can't seem to get the insertRule method to do anything (not even produce an error). Am I missing something? <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <script>...

Why does my CSS property for a class not apply?

css,stylesheet,chromium
I created a table with a specific class= indicator to apply customized CSS properties while my stylesheet looks like: tr td, tr th.featured {  border: none; } tbody.featured { border-top: none; } However, while trying the stylesheets out in Chromium's page "inspector" they seem to work and apply fine...

Django stylesheet will not load

python,django,stylesheet,static-files
I have read through the limitless threads on static files and all the issues that seem to occur, but nothing fixes my issue. I spent a lot of time getting my "media" folder working yesterday, but I cannot seem to get the static files working. My template looks in the...

Can I shorten | truncate | crop my CSS file with some kind of placeholder?

css,stylesheet,placeholder
Ok peep's... So I'm creating a Master CSS file to use with all my web app's. My first thought was to have every permutation of a width: style I'd use, to hand. ie: str = ''; ver = 0; while(1){ if( ver == 1000 ) break; str += '\n.w' +...

Adding stylesheets using wp_enqueue_style only affects admin panel

css,wordpress,stylesheet
I'm building a custom Wordpress-theme and have started from scratch, with a bare minimum of theme files. I've already added a custom stylesheet to the admin panel using admin_enqueue_scripts and are trying to add one to the front end of the page using wp_enqueue_scripts, so far only consisting of the...