stylesheet

Force CSS Recache

Hi All, Is there any way to determine or force a CSS file to be re-cached if the user is operating off an old file? ...

How can I disable inherited css styles?

So I am creating a container with rounded corners using the following method: div.rounded { background: #CFFEB6 url('tr.gif') no-repeat top right; } div.rounded div { background: url('br.gif') no-repeat bottom right; } div.rounded div div { background: url('bl.gif') no-repeat bottom left; } div.rounded div div div { padd...

QTabBar icon position

Is there a way to change the alignment of the icon or text of a tab in Qt? Specifically, I would like the text to appear below the icon. By default the icon sits to the left of the text, but that's not appropriate for all situations (especially when you start styling your tabs with stylesheets) It would seem very odd to me that this aspe...

How can you configure Rails to use blueprint-css instead of the default scaffolding css?

What changes do you need to make to a Rails project to configure blueprintcss as the default stylesheet to be used when you generate scaffolding instead of scaffold.css? ...

Can the second of two consecutively invoked stylesheets override all styles defined in the first?

If I have a HTML page that links to two stylesheets that are invoked like this: <link rel="stylesheet" href="original.css" media="screen, projection" /> <link rel="stylesheet" href="override.css" media="screen, projection" /> If these two files define the exact same style names, is it true that original.css will have no bearing on the...

Change width of all Select elements who are descendent of a div id="content"

I'm trying to style all <select> elements that are a descendant of a <div>. I could have a put a class on them but i was trying to be clever :-) I believe it doesn't work in ie6 but does it work in ie7 etc? How do you do it Here is one of my selects (it has no class or id) but they are all descendents of a div whose id is "content" <...

Outlook Interop, Mail Formatting

I have an application written in C# that uses Outlook Interop to open a new mail message pre-filled with details the user can edit before manually sending it. var newMail = (Outlook.MailItem)outlookApplication.CreateItem( Outlook.OlItemType.olMailItem); newMail.To = "[email protected]"; newMail.Subject = "Example"; newMail.BodyFormat...

jQuery equivalent of YUI StyleSheet Utility?

Does jQuery - or one of it's plugins - have equivalent functionality to the YUI StyleSheet Utility? "The StyleSheet Utility is capable of creating new stylesheets from scratch as well as modifying the existing stylesheets held as properties of elements sourced from the same domain or any inline elements." This (I'm fairly sure) is cr...

how can I apply a CSS stylesheet to all page views in my Firefox browser

I would like to apply a CSS stylesheet to all page views in a Firefox browser using a menu option and be able to toggle this when required. (The functionality I want exists in IE: Tools | Internet Options | Accessibility | Format Documents Using my Stylesheet (although I think this may affect pages outside of simply IE). ...

Possible reasons for stylesheets not to be applied?

Hi, We're developing this ASP.NET web app with multiple users on different browsers. One of the users complains that the pages look funny, and after looking at the screen shot he sent, it looks like the css is not applied. According to the bug report, the user is using IE7 (but I suspect it could be IE8). I develop in Firefox, and usi...

firefox (Gecko) conditional style sheet

Hello world, today I'm trying to optimize my website for a better rendering in firefox! my problems are the text-shadow and font-weight properties ... I would like to set custom values only for firefox (my website is mac only compatible so I don't need IE compatibility) but I don't wont to use separate style sheet for only these two prop...

Is using the style attribute frowned upon?

As someone who is beginning to make a transition from table based design to full CSS I'm wondering if using the style attribute to make adjustments to elements is considered "cheating" and if absolutely ALL presentation should be strictly in the style sheet? See also: A question of style - approaches to styling and stylesheets ...

Disable equal heights JS on print stylesheet

Hi everyone, I have my own simple equal heights code in jQuery to make two columns the same height: var content = $("#content"); var sidebar = $("#sidebar"); var maxHeight = Math.max(content.height(), sidebar.height()); content.height(maxHeight); sidebar.height(maxHeight); This JS file is included in my header file. I have a print st...

css style if else condition

I would like to use conditions in my css. The idea is, I have a variable that I replace when the site is run and generate the right stylesheet. I want that according to this variable the stylesheet changes! It looks like: [if {var} eq 2 ] background-position : 150px 8px; [else] background-position : 4px 8px; ...

Stylesheet confusion

I have used a template for my website. that template contains 2 stylesheets. one is for text and the other is for layout. now i have a master page and a contactUs form uses that masterpage. the master page uses both the above mentioned stylesheets. I have used an accordion in a control. The problem is that the accordion is perfect in the...

CSS class reuse / auto populate

Hi, say I have a css class name div.TestClass { float:left;etc// } span.SpanTestClass { float:right;etc// } on my form, I have got many spans and divs. is there an easy way to implement all the classes for my spans and divs instead of typing them all out when I create a new span or div? instead of this: <span id=span1 cl...

How to control text resize rate in HTML page

Hi All, We have designed an application which has two frames. First frame have displays available menu list in it and second frame have the menu content displayed in it. We have designed our pages and style sheets so that the page text content is re sizable using View > Text Size feature of IE. Is there any re size controlling factor w...

Drupal - Zen Subtheme - Specify stylesheets for non-IE browsers

On Drupal 6 using a Zen subtheme, our custom stylesheet is beautiful and perfect everywhere except in ie7. Appears to be the :hover bug, where any link we hover over causes the main content area to jump over the left sidebar (is that called margin collapse or margin reset?). Tried setting min-height: 1% on all :hover and parent elements...

how can one "unstyle" a div html element?

Is there a simple way via CSS or javascript or anything really to take a div and make it not inherit any styles? I'm creating a bookmarklet which adds a header to a website. It modifies the DOM as follows: var bodycontent = document.body.innerHTML; document.body.innerHTML = ''; var header = document.createElement('div'); var bodyconta...

CSS horizontal menu - equally spaced?

Hi all, I guess this is a common question but haven't found any good answer about it, and questions around here are not exactly my case. Also, this is my first question so please don't be too harsh on me. lol I have a standard CSS menu, made with UL and LI tags. I need them to get to cover the whole page, horizontally (not my real case...