css

CSS - Is there a way to get rid of the selection rectangle after clicking a link?

Is there a way to get rid of the selection rectangle when clicking a link which does not refresh the current page entirely? ...

How Do I Format a HTML Form Without Using Tables

I know it's bad to use HTML Tables for everything... and that tables should be used only to present tabular data and not to achieve some style goal. My question is, how do you make HTML forms with CSS so they look nice and aligned like when using tables? ...

How to line up HTML input elements?

I am hoping to find a resource for lining up input elements in a HTML page. I find it difficult to get a select element and a text box to be the same width even when using the width style attribute, and it is even more difficult across browsers. Finally, file inputs seem impossible to get to the same width cross browser. Are there any go...

How do I highlight a link based on the current page?

Sorry if this sounds like a really stupid question, but I need to make a link change color when you are on the page it links to. For example, when you are on the "Questions" page of stackoverflow, the link at the top changes color. How do you do this? ...

How to override global stylesheet

In a nutshell, there's a global stylesheet: a { font-family: Arial; } I want to use a different font family for a particular link: <a href="..." style="font-family: Helvetica;">...</a> or <span style="font-family: Helvetica;"><a href="...">...</a></span> but nothing works. Is there an easy way to do this? P.S. I'm dynamically (...

Is there a way to enhance by CSS an HTML <select> and its <option> on IE 6 ?

Internet explorer 6 seems totally ignore CSS classes or rules on select, option or optgroup tags. Is there a way to bypass that limitation (except install a recent version of IE) ? Edit : to be more precise, I'm trying to build a hierarchy between options like that example: Here's the HTML snippet : <select name="hierarchicalList" mu...

Is this how you would structure your CSS stylesheet?

Leaving aside the question of whether you should serve single or multiple stylesheets, assuming you're sending just one, what do you think of this as a basic structure? /* Structure */ Any template layout stuff should be put into here, so header, footer, body etc. /* Structure End */ /* Common Components*/ Repeated elements, such as...

Drop-shadows text: CSS or graphic?

I have an internal web app with an image at the top of the page, currently containing some english text with drop shadows. I now need to provide localized versions of this page for various languages. My main choices are: Have a different graphic per supported language, containing the localized text. Use CSS to position localized text o...

CSS 'schema' how-to

How does one go about establishing a CSS 'schema', or hierarchy, of general element styles, nested element styles, and classed element styles. For a rank novice like me, the amount of information in stylesheets I view is completely overwhelming. What process does one follow in creating a well factored stylesheet or sheets, compared to ...

How can I get a section of this div to sit next to each other?

Code and preview: <html> <head> <title>Testing some CSS</title> <style type="text/css"> .dDay { font-size:205% } .dMon { font-weight:bold; font-variant:small-caps; font-size:130%; margin-top:-.7em; } .detailContainer { vertical-align:middle; display:table-cell; padding:0em 0em 0em 1em; } #dContainer { ...

ASP.NET: How to set the css class of a Control during DataBind?

A table row is generated using an asp:Repeater: <asp:repeater ID="announcementsRepeater" OnItemDataBound="announcementsRepeater_ItemDataBound" runat="Server"> <itemtemplate> <tr id="announcementRow" class="announcementItem" runat="server">...</tr> </itemtemplate> </asp:repeater> Now in the data-bind i want to mark "unread"...

what is a good cross-platform css compressor?

i need to compress my css as part of my ant build. i noticed that csstidy does this, but it would not be easy to include this in my ant build because i would need to use a different binary on different platforms. so, is there a java css compressor that people use? ...

CSS and lack of constants/variables issue

Given a stylesheet with a fully qualified reference to an image resource on another server, is there a good way to handle promotions through different environments that require a different base URL? background-image: url (evironmentSpecificURL/resourceName.foo); The environmentSpecificURL will vary from environment to environment...

Is it possible to print a DIV that is hidden by jQuery's "slideUp" function.

Hi, I have a simple "accordion" type page containing a list of H3 headers and DIV content boxes (each H3 is followed by a DIV). On this page I start with all DIVs hidden. When a H3 is clicked the DIV directly below (after) is revealed with jQuery's "slideDown" function while all other DIVs are hidden with the "slideUp" function. The ...

Is it considered bad practice to use absolute positioning?

I was developing a web page, where I was laying out a board for a Chess-like game, along with a couple of piece trays. It's all done using HTML (with jQuery for dynamic updating as the game is played). Somewhere I'd got the notion that using absolute positioning of elements within a page was considered a bad practice, and that it was pre...

Strange float behaviour in IE7

I want to create a simple box with a header bar containing a title and some tool buttons. I have the following markup: <div style="float:left"> <div style="background-color:blue; padding: 1px; height: 20px;"> <div style="float: left; background-color:green;">title</div> <div style="float: right; background-color:yellow;">t...

Internet Explorer 8 and CSS

Quick question. What do you think, I have a few sites that use a 3 level drop-down menu that will be broken if IE8 released with its current CSS standards in IE8 beta2. So do I take the time to redo those drop downs now? I realize that the way they rendered CSS changed completely between beta 1 and 2, but 2 was/is supposed the be a gene...

Programmatic solution to change navigation id to highlight current page ASP.NET

I am writing a website with Visual Studio 2008 and ASP.NET 3.5. I have a masterpage set up to simplify the layout and to keep the content pages for content rather than content and layout. The navigation is list, css'd so it looks like a bar. In order to highlight the page on the bar, the list item needs to look like this <li id="curren...

Drupal CSS URL Problem

Hi, I've just got a fresh Drupal 6 install. The css didn't work. Then I realised that a "?U" was appended, and Drupal couldn't find it. Does anyone know where to unset this? <link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?U" /> <link type="text/css" rel="stylesheet" media="all" href="/modules/system/...

When does CSS's !important declaration not work?

Hi, I am wondering if someone can put a bit of an authoritative reference summary of when the !important declaration in CSS does not work to override inline styles. ...