stylesheet

copy css from one class to another?

Hi! This may seem like a very basic question but I did not seem to find an answer to it. I know it is possible to define a css rule for more than one element at once as such: .element1, .element2{ font-size:14px; } Is it possible, though, to do that exact same thing, but apply the css to element after the css for element1 has been d...

Allow user to change the web page font sizes - ASP.Net

I want to provide a feature on my website to let users increase and decrease the font size by clicking on some stuff (like + and - image etc). However I also want: make sure that when the font size is increased, my website layout doesn't get messed up test the scenario out on my machine to make sure about the point above I think what...

Use of * selector in style sheet to reset styles

At the moment I am just resetting the styles I need at the top of my style-sheet, like: html, body, div, fieldset, form, h1, h2, h3, h4, p, ul, li { margin: 0; padding: 0; } However, I have seen a lot of times that people use: * { margin: 0; padding: 0; } That does seem to make things easier, but somewhere else (don...

Is a good idea to use a reset stylesheet in a started project?

I'm working in a long started web project that not use a reset stylesheet. It will be a good idea to include a reset stylesheet given all the things already done? ...

Umbraco- weird stylesheet problem

I'm developing a user control that will be embedded in Umbraco. It's been a long slog but I've got it mostly working. At this point I have a template in Umbraco that refers to my web control as a marco. So far so good. It looks great in Firefox, but breaks in IE7. The weird part is that the control looks perfect in both IE7 and Fire...

How to change statusbarpanel background color in firefox extension

I'm writing a firefox extension which displays a statusbarpanel containing some text. I want to change the background color of my statusbarpanel depending on the message. e.g. red background for errors. var pnl = document.getElementById("panelId"); pnl.label = "OK"; pnl.style.color = "white"; pnl.style.backgroundColor = "green"; All o...

How to add stylesheet for web part in MOSS/Sharepoint 2007

I am migrating a web part from 2003 to 2007. The web part originally used styles from a modified core style sheet. I now want to create a separate stylesheet just for this web part. I have tried to use CssRegistration.Register("/wpresources/Portal.Megamenu/mystyles.css"); but this results in a HTTP 401 and I have to log in (NTLM is...

XSLT Insert element only if it doesn't exist

I have a source document: <?xml version="1.0"?> <source> <ItemNotSubstituted/> <ItemToBeSubstituted Id='MatchId' /> </source> And a stylesheet containing content I want to substitute into the source: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:output indent="yes"...

SharePoint masterpage css styles not showing for other users

I'm setting up a SharePoint Site where the masterpage is built using one of the existing masterpages as a starting point (Blue Band). When I test the site while logged in as the super admin, everything looks fine. But if I log in as a general user the default masterpage shows as Blue Band again. I'm guessing there must be some permissi...

CSS reload on IE7

It looks like IE7 doesn't reload the latest version of my stylesheet each time I upload a new version on the server. This is annoying as I am debugging my .css file to make it work on IE... Tried to empty the browser cache but still not working. Thanks for your help. ...

automatic jquery stylesheet switcher

I have seen many css switchers which place a button allowing the user to change styles to suit their taste. I am looking for a similar solution that I have not yet found. This is the closest: http://net.tutsplus.com/demos/03_jQueryStyleSwitcher/demo/index.php# I want my page to fade from one style sheet to the next every x seconds, so...

Problem with html,style,padding and div section (I think)

Hi I have the code below, which works lovely and does EXACTLY what I want it to do, except the header section is a a line down from the top of the div section and I would like it butted to the top.. is there anything I can do about this ? Thanks <div id = "Side1" style="width: 175px;height:210px;overflow:hidden;background-color: #AAA...

Stopping the contents of a div section moving

Hi I have a div section, which is full of <a href=""> tags, on a event on the page I shrink the div section BUT if the user tabs into the div section, it moves so that the highlighted <a href></a> has focus, is there any way to lock a div section that it's contents don't move ? So for example the code (psuedo not real) I have the follo...

CSS - a:visited:hover ?

How can I apply a font color only to hyperlinks which have already been visited and are being hover by the mouse? Essentially, what I want to do is a:visited:hover {color: red} ...

Obtaining Background-image from stylesheet using C#

Hi everybody. I am trying to get the value of a "Background-image"-tag in a stylesheet which is used on my web-site. The style-sheets are referenced from the HTML file as follows: <style media="all" type="text/css"> @import "master.css"; </style> <style media="all" type="text/css"> @import "layout.css"; </style> The layout.cs...

Border of Div with 100% dimensions isn't displayed

Consider this simple markup: <body> <div style="border: 2px solid navy; position:absolute; width:100%; height:100%"> </div> </body> In the browsers I've tested (Firefox and Chrome) the right and the bottom parts of the border seem to lie outside the window area, since they are not visible. How should I fix my markup or stylesheet so...

HTML Print Header & Footer

Is it possible to print HTML pages with custom headers & footers on each printed page? I'd like to add the word "UNCLASSIFIED" in red, Arial, size 16pt to the top and bottom of every printed page, regardless of the content. To clarrify, if the document was printed onto 5 pages, each page should have the custom header & footer. Does...

jQuery UI and using/not using themes

We're using jQuery UI Tabs at the top of the page (with no themes, using our own styles in the screen.css file) and using jQuery UI Datepicker later on down the page. We want to use a jQuery Theme for the Datepicker, but we want to use our own styles for the Tabs. But as soon as we include the Themes, it (obviously) styles both complete...

Qt4 Stylesheet Pseudo-states

Hello, I'm attempting to change the style of a button using the :checked and :unchecked pseudo-states, but have not been successful. I have tried a variety of different combinations to no avail. #btnOnOff:checked { ... } #btnOnOff:unchecked { ... } #btnOnOff.QPushButton:unchecked { ... } None of these seem to be working. ...

GWT inter project communication

Hi, We have a large GWT project and many smaller GWT sub-projects basically the large controller project invokes the smaller projects via many means such as some are incorporated into iframes that are shown in page, some are shown by clicking a URL and opening the project into a new window. The requirement is to change the Css on the fl...