css

Using CSS on a webform that's using a MasterPage.

How can I apply CSS to a Web Content Form that is using a MasterPage? I can't apply Class="" anywhere. :S Any help? ...

Styling Pagination Links

Hello, I am having a hard time applying CSS to some pagination links. I would like the links to show horizontally at the bottom of the page, centered: 1 2 3 > >> Right now with the CSS, they show vertically, centered, and near the top of the page: 1...

How can i get default font size in pixels by using JavaScript or JQuery ?

Hi, As you know em is a relative font measurement where one em is equal to the height of the letter "M" in the default font size. An advantage in using it is because you will be able to resize the text. But how can i get default font size of current environment (in pixels) by using JavaScript or JQuery ? regards, ...

Weird spacing issues - IE8 works great, IE6 and IE7 bite

Checkout http://new.reyniersaudio.com/index.php?task=browse&view=model&modelId=17 and if you notice on IE8, Firefox, Chrome and Opera, the right sidebar shows proper spacing. In IE6 and IE7 it's way too spaced out. What do I have in my css that makes that happen. ...

css positioning problem show different result in different browser

i have a blog and i have placed a form in right but it shows different result in different browser. The Link named "Subcribe in a reader" should be in center but it shows in left in Safari and Opera but IN FF and Ie7 Shows Perfectly in center. And The border is 5-6 pixel going up in Opera and Safari but in FF & IE 7 it shows Perfectly ...

Cannot get float left/right to work for a div in Internet Explorer.

Here is the html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="styles.css"/> <title></title> </head> <body> <div align="center"> <div id="main-header-content" class="content"> <div class="left"> Lorem ipsum do...

WPF and external CSS file

Is it possible to store style definitions in one file (XXXXX.css) and then to use this file in XAML files? ...

jQuery - dynamic div height

I'm trying to resize a div on pageload and window resize. The code bellow is placed before </body>, and it works fine on pageload, but does nothing on window resize. I tested the resize function with an alert, which triggers on resize, but the height remains unchanged. <script type='text/javascript'> $('#main-content') .css({'height...

HTML and CSS in Qt4 (which) widgets?

Can somebody tell me where in Qt gui can I use HTML? Which widgets do support HTML? Or more specific: why HTML doesn't work in QTreeWidgetItem and QTreeListItem? I'm trying to make some of the text in QTreeWidgetItem italic or different colour and I can't do it with HTML, it is not interpreted at all, I just see HTML code in tree ite...

jquery addclass styling doesn't work, wrong selector?

<li id="leistungen"><a href="#Leistungen" onclick="sitemapChangeSubMenu('leistungen','leistungencontent','leistungen'); return false;">LEISTUNGEN</a> </li> This is the list-item which I want to style with: $("#leistungen a").addClass("brown"); This doesn't work for either: $("#leistungen").addClass("brown"); my css code is just ...

IE7 hover on div being lost when you touch a child element of that div

In Theory I have a div (container) that when hovered over one of its child divs appear (drop-down). Drop-down contains links images etc. and when I leave it and container then drop-down disappears. <div id="container"> <div>Hover over me to see extra stuff</div> <div id="drop-down"> <div> <img /> </div> <div> ...

css stylesheet stronger than jquery addClass?!

hey guys this thing drives me crazy. I defined in my stylsheet ul#menuCnt li a { color:"red"; } If i want to make a hover effect, using jquery this won't change any color :( $("ul#menuCnt li a").hover(function() { $(this).addClass("brown"); }, function() { $(this).removeClass("brown"); }); I'am really confused. If I don't ...

How do I apply a CSS class to html.ActionLink in ASP.NET MVC?

I'm building an ASP.NET MVC application, using VB.NET and I'm trying to apply a css class to a Html.ActionLink using the code: <%=Html.ActionLink("Home", "Index", "Home", new {@class = "tab" })%> But when I run the code I receive the below error: Compiler Error Message: BC30988: Type or 'With' expected. I'm new to MVC and really hav...

Pagination problem

Currently I have some xml documents which are converted via xsl into html. The html is converted via abcpdf into a pdf document. The content of the pages is dynamic. A page is represented by a div tag, however the amount of content going in could in fact be 3 pages long & I need some pages to have a header and a footer inserted and some ...

TinyMCE is changing my inline CSS

I input this in the HTML editor: <p style="border:1px solid #edede4;border-top:none"></p> I click update, and click the html editor again. The HTML (in Firefox) has changed to: <p style="border-style: none solid solid; border-color: -moz-use-text-color rgb(237, 237, 228) rgb(237, 237, 228); border-width: medium 1px 1px;" mce_style=...

Include: css with php file extension??

I'd like to wrap a css file in php... So I write the header for the css file and give it a php extension, thus... css.php. The question is will this work if the page is already being used as an include... or will this new header clash with the frame the page is being included into???? ...

Creating a "Google Analytics" Like Site Overlay

Hello, I am trying to create a site which uses similar technology to that of Google Analytics Site Overlay, but will be framing my own site. I may decide later to change the type of overlay (or eliminate it entirely), so using overlay instead of directly modifying the source pages is the only option I am considering. For now, I am als...

How to I make a floated-right element vertical-align to the bottom of its parent div?

In other words, the HTML blurb below has "little words" in the upper right and I want it to be in the lower right. <html> <body> <div style="width: 500px; background-color: #cdcdcd"> <div style="font-size: x-small; float: right">little words</div> <div style="font-size: x-large">BIG WORDS</div> </div> </body> </h...

How do you refactor JavaScript, HTML, CSS, etc?

I'm using Eclipse and the current solution (which I dislike) is to use "Search/Replace". This is an error prone solution. Do you know any better approach to refactor JavaScript, HTML, CSS resources safely in big applications? Or do you use any other cool refactoring tool(s)? ...

CSS: prevent text overlap

I'm using some customized <sub>...</sub> to provide index subscripts in certain <tt> regions: tt.indexed sub { color:#0000ff; position:relative; top:0.5em; right:1em; margin-right:-0.5em; } tt.indexed sub:last-child { margin-right:-1em; } Basically to pretty up stuff like 000001 002103 104005 1060...