I'm cleaning up the CSS on a fairly large (and somewhat disorganized) website. Is there a simple way (or a piece of software) that will let me find, for example, all the "a" tags that are within "h3" tags? Or all the "spans" that are within "p" tags? I want to modify some of these CSS rules but I'm afraid I'll break something hidden so...
Slippy maps are web widgets which allow the user pan around a two dimensional plane by grabbing and dragging it. This control was made popular by Google maps, and can be seen on many modern mapping systems today. It's obvious as you watch them load that they are actually a grid of images which are loaded as-needed as the user pans. My qu...
As you probably already know, you may have multiple classes on xhtml elements separated by a space.
Example
<div class="content main"></div>
And with CSS you can target that div with either .content or .main. Is there a way to target it if and only if both classes are present?
Example
<div class="content main">I want this div</div>...
Two parts to my question:
1) Is there a way to inherit another control's attributes and styles in CSS? Assume the controls have no parent/child hierarchy and can be completely different control types:
IE:
#MyFirstControl
{
width: 100px;
}
#MySecondControl
{
width: MyFirstControl.styles.width; /* This doesn't work */
}
2) Assume...
Given a web page that has loaded (possibly several) CSS files, and inline styles, through the use of:
<link rel="stylesheet" type="text/css" href="some_file.css" />
<style type="text/css"> /* some css rules */ </style>
<link rel="stylesheet" type="text/css" href="some_other_file.css" />
<style type="text/css"> /* some other css rules *...
I've found a lot of similar questions, and tried out several solutions (including some of the so-called "holy grail" CSS layouts), but they don't quite do what I need.
I have a containing div (a CSS containing block) with id right. Inside it on the left side, I want a fixed-width div (a splitter bar, but it doesn't matter what it's bein...
I'd like the image to bleed into the container div.imgborder and i'd like the bleeding to be semitransparent (like an opaque glass effect). Is there a way to achieve this via CSS or maybe setting an image background with some opacity on the div.imgborder?
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN'
'http://www.w3.org/TR/h...
I came across an interesting problem today. I have a text email I'm sending from a Web page. I'm displalying a preview and wanted to put the preview in a fixed font retaining the white space since that's the way the plaintext email will appear.
Basically I want something that'll act like Notepad: the newlines will signal a newline but...
The default code shows the Home menu item aligned to the right. I changed the ul:menu and added attribute float:left to get the 'Home' menu too be aligned to the left of the page but to no avail.
Is there way to show the 'home' menu to be on the left end of the page. I am trying to create a menu bar similar to SO as a learning project
...
I have a list of links that are exhibiting some really weird behavior. The code is:
<ul id="home" class="panel" title="title_here" selected="true">
<li><a href="#search">Search for Name</a></li>
<li><a href="#browse">Browse by Department</a></li>
</ul>
It is part of an iPhone site, using the iUI framework. I know uiUI is bette...
I found that some web page layout works perfect for English turns to be messy if another language is applied. The root cause is that some words in some language is too long and pushes other div's away from their best position.
For example,
<div style="width:40em; overflow: hidden">
<div id="div1" style="float: left">Bla Bla...
I just added a reference to the CSS Friendly Control Adapters dll and added the following file (CSSFriendlyAdapters.browser) to my "App_Browsers" folder:
<browsers>
<browser refID="Default">
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.TreeView"
adapterType="CSSFriendly.TreeViewAdapter" />...
I have the following page (http://www.workingstorage.com/Sample.htm) that has a footer that I can't make sit at the bottom of the page.
The CSS is inherited and befuddles me; I can't seem to change it properly to put a minimum height on the content or make the footer go to the bottom.
...
How do I freeze the top section of a MasterPage so that the menu doesn't scroll off the screen?
...
I'm looking for a tool that can scan over a set of HTML pages, and check for bad or out of sync CSS usage. In particular, I want to check the following:
Each CSS rule in the CSS files is used at least once by some HTML page.
Each CSS class referenced on the HTML pages is actually defined in a CSS file.
(Nice to have) that inline style...
Hi...got problems with my CSS style.
border widths doubled in IE, but in Mozilla, Opera, Safari, its ok.
here's my code:
.subPane{
border: #FF33FF thin dashed;
}
'thin' is like 1px in width, but when viewed in IE, its like 2px already.
:(
...
Hi,
On this page, I have a 2-tone background. The structure of the page is:
<body>
<div id="upbg"/>
<div id="container"/>
</body
This background is achieved by adding a dark background image to upbg and a lighter background image on the body. The css for upbg is:
#upbg {
background: #FFFFFF url(images/bg-dark.jpg) repeat-x scr...
So there is a lot of posts on the internet about how to convert your XHTML+CSS theme to Wordpress, but I have a Wordpress theme and want to convert it (or un-convert it) back to just XHTML+CSS.
Has anyone done this before? Anyone know of any resources (tutorials etc.) that I can use to help me do this?
Thanks
...
I have been looking at a hack to solve a CSS problem I have. I haved used one to create a custom rule for Internet Explorer.
margin-top:45px;
*margin-top:0px;
Does this hack apply to all IE browsers? Does this hack appear in any versions of Firefox or Safari?
...
Well, that's the context: I am editing a latex source file in google docs, and I wonder if I could use CSS to color arbitrary keywords and text enclosed in dollar signs.
For example, given this HTML file:
<html><body>
\section{Heading 1}
<br>
This is a simple file with a formula $x_1 = x_0 + 1$.
<br>
Here it ends \cite{somebody}.
</bod...