css

CSS Selector Style

Simple question, and probably reflects my inexperience with CSS, but... When creating a style sheet I like to explicitly specify the '*' wild card, so: *.TitleText { instead of just .TitleText { I find it reminds me that TitleText is applied to "any" tag, and can be overridden by a subsequent h1.TitleText. Maybe I just like this ...

Stretch and Scale CSS Background

Is there any way to get a background in CSS to stretch or scale to fill its container? ...

Are There Any "Blank" Wordpress Designs?

I'm currently about to enter a web design contest at my school along with a friend, and together we wanted to create a Wordpress blog theme. But so far... none seem to just be barebones, without and CSS Code, just the PHP code already there. Just if you know of a "blank" Wordpress theme... thanks. UPDATE : I do in fact know CSS and have...

How to make a pure CSS dropdown list (nav for a website)

Trying to make a pure css dropdown list that works well, and can't find any good resources. ...

Firefox does not render stylesheet immediately?

I'm not sure if this a settings problem or an HTML problem, but on a page layout I'm working on, Firefox does not render the stylesheet immediately. Meaning for maybe half a second I can see the unstyled page, then the stylesheet kicks in and it renders as I expect. All my stylesheets are in external css files loaded in the head tag. I'...

CSS hierarchy classes and IDs

I am building a menu using XHTML,CSS, and jQuery and I ran into a problem with my CSS. Here is my test page, and here is my css. What I am having problems with is that my .subMenu class is inheriting the properties of my #menu, the background colors and sizes are the same. I am looking for a solution that leaves .subMenu as a class s...

Can multiple CSS hover popups occupy the same space within a single div?

Hi, I'm trying to have text spans pop up on a hover pseudo-class for different lines in a menu (list items). I can have the pop-ups occupy the same space in the div if the menu/list is horizontal, but a vertical list places the popups at the same vertical height as the "parent" list/menu item. Any ideas - please! Here is the relevant ...

What does * HTML Body mean in a css style sheet?

In a stylesheet i have: * HTML BODY { padding-right: 0px; padding-left: 0px; padding-bottom: 25px; padding-top: 190px; } * HTML #maincontent { width: 100%; height: 100%; } i know that a . means class and a # means applied to the id, but what does * HTML mean? ...

Table problems with WebKit

I'm having trouble getting this code to show up correctly in WebKit browsers(chrome/safari). It looks fine in IE6, IE7, and FireFox. <table width="100%"> <tr> <td rowspan="2" style="vertical-align:middle;"> <a href="http://http://{$smarty.const.DOMAIN}/company/a_cherry_on_top/line/gift_cards/?v=s2"&gt;&lt;img src="/i/thumbnails/a...

How can I find information about CSS browser incompatibilities?

Hi ... Many times when I read books related to CSS I see things like this "this will not work on some browser", "this hack will work for that browser". Where I can all information that I need to know the hacks for working for all browsers? thanks ...

What would the best approach to follow to learn CSS?

I am a ASP .NET / C# developer. I have been asked to get a working knowledge of CSS for an upcoming project. What would the best approach to follow to learn CSS? EDIT: I would also like to use any help i can get from VS 2008 when using CSS. Is there a resource that would show all the tools in VS2008 that help in using CSS? ...

Is there a tool that will find html tags with class attributes that don't have a corresponding class in CSS?

I have found http://www.sitepoint.com/dustmeselectors/ which does about the opposite of what I want, identifying selectors in CSS that aren't used in HTML. I want a tool that will find elements that have a class attribute but the class isn't defined in any CSS being loaded by the page. Thanks ...

Easiest way to ensure same font and font size in labels, input boxes and text areas

I have a page where I combine labels, input boxes and text areas to display some content. I would like all of them to have the same font-family and font-size. I have played with the font-family: inherit style but this doesn't seem to work for the input and text areas. What would be the easiest way to ensure the same font / size over the...

Is it possible to use Django to include CSS (here's the tricky part) from a JS file?

As far as I know, there's no way to use {% include %} within a dynamic JS file to include styles. But I don't want to have to make another call to the server to download styles. Perhaps it would be possible by taking a stylesheet and injecting it into the head element of the document...has anyone does this before? ...

CSS Ride SideBar needs to Stay Up top

My right side bar isn't staying on top. These are the two pages for example. www.cafecartel.com and www.cafecartel.com.index2.php Currently the way the site is written, the right side bar must be placed like this: body id="Support" div id="container1" div id="container2" div id="header" ?php include("inc/header.inc"); ? h1 Poin...

IE6/IE7 css border on select element

Does anyone have a solution for styling the borders of "select" elements in Internet Explorer using CSS? ...

CSS - wrapping text around a Div

I am trying to get a text to wrap around a div in my XHTML. My XHTML looks like so.... <div id="cont-content"> <p>content</p> <p>more content</p> <div id="content-sidebar"> BLALALALALLAAL </div> </div> And my CSS looks like... #content-sidebar { display: block; float: right; width: 270px; height: 400px; ...

One page of entire site has invisible elements untill resized or scrolled in IE

One of my pages of my site is behaving really weird in IE6. One element is ignoring its background color and border. The other element is invisible (textcolor same as foreground color?) The elements are not always showing this behaviour, but about 50% of the loads without any pattern. When the browser window is resized or scrolled, or t...

reverting css style of <input type=submit button to its default style

I'm using a bookmarklet that inserts a script tag into the current web page. This script has some ui and an "input type=submit...." tag in it. Web Page A has chosen not to style "input type=submit.." tags whereas web page B has styled them. This results in the the bookmarklet displaying differently styled submit buttons based on the u...

Distinct stylesheets for type, color and layout. What goes where?

I came across this article on "A List Apart" that suggests spliting css information in (at least) three separate files, one for typography, one for layout and one for color information. Color seems pretty obvious, but how would you explain to your average programmer (that would be me) what's type and what's layout? ...