css

CSS Change in multiple locations on hover (jquery solution needed)

Hello, I'm working in wordpress, trying to figure out how to change the css color of a side nav element when a remote image is hovered. I would have done this easily with CSS and just assign the CSS hover class for each item, but since this is a CMS, the navigation and the image gallery will change dynamically. So, I'm looking for a J...

What is the simplest way of clearing floats in webkit?

I'm making a Google Chrome plugin. Therefore, the injected CSS need only work in webkit. What is the webkit-specific way of clearing floats? By clearing floats, I mean make a parent element enclose all floating children contained within. ...

Textmate syntax highlighting, extending highlighting from another language

I'm trying to extend some CSS highlighting in Textmate. My approach is like so... { .... patterns = ( { include = 'source.css'; }, { name = 'support.function'; match = '\..*\);'; }, ); } The problem is "include = 'source.css';". If I remove that line. My custom matcher hits...

Inline Styles vs Classes

In my head, I've always known to use classes over inline styles for any project. But are there any articles/postings/blogs defining the pros/cons of each? I'm in a debate about this, and I cant seem to find the blog post I read a long time ago about this. ...

dynamically generated html doesn't wrap to the screen.

I cannot for the life of me figure out why this markup is not wrapping. There's nothing special about it, except that it is generated by javascript. Here's the code. Any thoughts on why it's messing up would be welcome. I can include the js if you need. but basically it reads the text in the textarea, extracts the words, and creates a l...

interactive map not working in IE7

Hello, I am trying to build an interactive map using an imagemap and jquery. I have it completed and it works great in FireFox but IE7 is causing some issues. You can take a look at it here: http://www.thecolumbianchicago.com/map/ In IE7 the title of the rollover is not getting the width set properly. Also once you rollover the tall ...

How do you rename CSS rules?

What if you have a CSS template that's really nice, and you want to use it with a wordpress theme, but don't want to edit all the theme files to use the rules in the CSS template? Is there a way to create a CSS file that acts as a proxy between the new CSS template and old WP theme? ...

MSXML XHTML and embedded CSS

I have an Excel workbook that is used as a starting point to generate a user-fillable form in our internal system. As an aide to the users creating these workbook, I'm trying to add a preview function, that takes that spreadsheet, does some VBA magic to generate an HTML file, and then display that in their browser. I have the basic stru...

Anchor not scrolling correctly

I have a layout something along the lines of : <div class="banner"></div> <div class="content"></div> My banner has position:fixed; and is roughly 200px high. The problem is that when I click a link with a fragment identifier, the page scrolls and the anchor (with the identifier) sits at the top of the page, behind the banner instead...

CSS link styling troubles.

Hi there, I've been making websites for years and theres on thing that really bugs me and confuses me. I set a link style in the css file for a content div in my website and this successfully styles the links. However if i create a span or div inside this div with a new link style i end up having to add in !important to various attribu...

IE7 ul display:none/block problem

Hi to all. I've got a strange problem with IE7. This is my html: <div class="nav square"> <div> <ul> <li><a href="#square" class="square_lk">[b] square</a></li> <li><a href="#history" class="history_lk">[b] history</a></li> </ul> </div> ...

Help with HTML/CSS to make a two-column and background setup.

Hi I would like to replicate the setup. I'm currently trying to use a div for the yellow background and inside it two nested divs for the purple blocks of text. If I don't put any additional elements in the outer div the background color doesn't appear. If I put an element, just to test, I get the yellow border between the purple blocks ...

How Do I Add Colgroup Tag to ASP:Datagrid Control?

How do I add a colgroup tag to the datagrid control so that I can style each column using css? ...

Use CSS to make a span not clickable

<html> <head> </head> <body> <div> <a href="http://www.google.com"&gt; <span>title<br></span> <span>description<br></span> <span>some url</span> </a> </div> </body> </html> I am pretty new to CSS, I have a simple case like the above. I would like to make the "title" and "some url" clickable but want to make description as non-cli...

Replace part of an image url in ASP.NET using JQuery

Hi, I have a script which translates an image url to a path and works fine for an image fade on primary node navigation. The script below gives me: http://localhost/Bar/App_Themes/main/images/Beers-Faded.gif Once I navigate one node deeper it adds the application path to the url and the function fails: http://localhost/bar/Bar/App_T...

Changing height of a div - Firefox and IE?

Hey all - I have a fixed size div with another div inside that holds Flash at 100%. I need to change the height of the fixed div on the fly. This works in Safari, but not on FF or any Windows browsers <div id="center1200"> <div id="content"> </div> </div> and I call with jQuery $("#center1200").height(1000); ...

Remove background image on image load

I'm loading image tags via AJAX and inserting them with the conventional .html(content) function in jQuery alongside a bunch of other HTML. However, this question still applies if you're loading a page from scratch. Now, I have a background image placeholder to be put there while the image loads. I want this background image to go away w...

Why is z-index not working for this webpage?

Open up http://irule.at/quovadis, and it will show you a regular theme. The problem is that the div photos is not showing up. It's most likely hiding behind body/html because of the z-index, but I want them to show behind the divs in the middle. How do I fix this? ...

force browser to add horizontal scroll bar?

Hey, Just wondering if there's some way to force the browser to bring up the horizontal scroll bar. My problem is that I have some images in a div and they "overflow" out of it when I make the window smaller. I would rather not use the overflow property nor do I want to resize the images. Thanks in advance, Matt ...

rounded corner textarea

This is very general question. I want to create a textarea with rounded corner with CSS. Please help me out. ...