stylesheet

Doubt in css selector > [#id (.class1 or .class2)]

Hi, I think that it should exist a better way of doing this... I'm using the follow css selector #book_form .ano_chegada, #book_form .ano_partida {...} Html: <form id="book_form"> <input class='ano_chegada' .../> <input class='ano_partida' .../> </form> I really don't like to repeat the form id twice. Is it strictly necessary? I...

Styling only promoted widgets using QT Creator

I'm new to Qt and have been designing forms using Qt Creator. I've noticed that I can apply styles for specific widgets in the form's stylesheet, and it will style every widget on the form. For example "QPushButton{color: red;}" will make all the QPushButtons on the form have red text. Is there a way to only apply styles to certain gr...

How can I load the attributes of a CSS class in a stylesheet directly into a hash using JavaScript or jQuery?

I want to load the key value pairs from a class, or id, in a CSS stylesheet into a JavaScript object in order to access the data. Note that I do NOT want to add that class to a DOM element (at least not directly) The only way I can see in JQuery is to create a dummy hidden element, add my class to it using $(“#dummy").addClass(“myclas...

Missing resources in QT Stylesheets

I am using stylesheets in QT to skin several buttons with images from the QT resource system: QFrame#DialogButtonTitle_SaveAsNew { background-image: url(images:DialogButtonTitle_SaveAsNew.png); } This works great, but I would really like to write a warning to our logs if the image file could not be found (and the button is thus nake...

QPushButton Issues

Hi, I am using the following code for create a button. It is working fine. but I got the yellow rectangle at the left corner. Why? Please help me. Thanks in advance, backButton = new QPushButton(tr("Back")); connect(backButton, SIGNAL(clicked()), this, SLOT(showSearchResultPage())); backButton->setStyleSheet( ...

Make Flex 4 modules inherit style from main application

Hi, I am developing a modular Flex 4 (or more precisely AIR1.5, if that makes difference) application and encountered rather ugly problem. In the main App I have a style.css, which defines all the styles for, let's say, spark Buttons. It looks more or less like this: s|Button, .moduleButton{ font-family: "Fonter"; skin-class: Clas...

GWT CSSResrouces - what's the advantage or the best way

Hey, I'm developing a GWT app and now facing the CSS part. I read a lot about this topic at the official site but still have a few questions and hope someone can give me a hint. When I'm using CSSResource the css styles will be compiled into the code - right? So it's not possible to change it without recompile the app. But what I wanna...

How to load CSS using jquery

Hi , I have loaded a css file on server so I am having a URL with me. How can i load it in my perl code using JQuery ? So currently I am hardcoding the css in my mason page which is missing from the page something like this JQ.onReady('show', function(){ JQ.addStyles({styles: ["\n\n.ap_classic { border-top:1px solid #ccc;border-le...

Is it possible to specify line weight for "text-decoration: line-through;" in CSS?

The default weight of 1px for line-through property in CSS is great for body copy at 1em. Unfortunately for larger items such as a price set at 3em on an offer site, 1px is really too light. Is it possible to set a heavier line weight for line-through? If not, what alternatives should I consider, such as an image overlay for example? ...

three20 right align

is there a way to right align div tag inside a styled text item in three 20 on iphone? I have accomplished it using the following: return [TTBoxStyle styleWithMargin:UIEdgeInsetsMake(-20, 230, 5, 5) padding:UIEdgeInsetsMake(0, 0, 0, 0) minSize:CGSizeMake(20, 20) position:TTPositionStatic next:nil]; however, this only works in portr...

What is the best way to include a style sheet for a specific page?

Hello, thank you for viewing. My website includes the same header and footer for each page using PHP. I wanted a style sheet that only applied specifically for a certain page, so put the style in using the appropriate tag. ...<body><style type="text/css"> /* what ever */ </style></body>... The style sheet is processed correctly in a...

one stylesheet for two wordpress installations

I need an easy way to load the same style sheet for two different installations of wordpress. One is at main.com and the other is at main.com/secondary. Thanks. ...

Website displays badly in IE 8, but works fine in other browsers

Hi! http://test.rfinvestments.co.za I've been working on this website for a little while and, now that it's online, I'm frustrated with cross-browser compatibility issues that don't present themselves when I view the site from my pc. If you view the site in Google Chrome, you should see it exactly as it's meant to be seen. In IE 8, I'v...

CSS Style inheritance/overloading

Hello! I have a web page that, at a certain point, displays a navigation bar which is nothing more than a list (ul) of a elements. Most of the style rules for said a elements is common. The only part that should change is the image to show which can be guessed from the id tag of each li element of the list. So here's the question: Is ...

How to reference CDN images in a stylesheet which may use HTTPS?

I have all my site images setup to serve from Amazon's Cloudfront CDN. If my pages will sometimes be served as both HTTP and HTTPS, then should I make all image paths HTTPS to the CDN? Is this a poor practice? Any other ideas? ...

Render CSS in Django- n00b question

I am trying to get the css sheet to load on my dev comp. It is in the media directory as "media/base.css" In my base/base.html template, I have: <link href="media/base.css" rel="stylesheet" type="text/css" /> I found http://docs.djangoproject.com/en/1.2/howto/static-files/ but that didn't fix it. Any ideas? ...

How does XML+XSLT affect SEO?

I have a site that is built completely in XML and is transformed by a single XSL file. How does this affect SEO? Is it possible to store page-specific metadata? Will robots see the transformed page (the result of the XSL stylesheet) or the plain XML? ...