css

Is using Flex CSS stylesheets a waste of time?

I'm quite new to Flex and wondered if other developers actually use its stylesheet capabilities? The reason I'm asking is that to my inexperienced eye it seems like a complete waste of time. The things that Flex calls CSS clearly isn't, it's some other beast altogether with css like syntax. As many dimension properties can't be set in t...

When my tables get loaded with data, the left tables take up the entire screen and the right tables get smooshed

So, I've been having this rather frustrating problem, and having failed so many times, I'm hoping someone here can help me. What happens is these tables on the left side of the page appear fine and do what they're supposed to do when I compile. However, once I load it on my company's intranet and load data that way (same data btw), the t...

Any easy way (with CSS maybe) to highlight a section of a web page based on the the bookmark (site.com/page.htm#bookmark

I want to link to a section of a page using a bookmark site.com/Page.htm#Bookmark) When the page is rendered, I'd like to highlight everything within the #Bookmark (Anchor) E.g., Employee 1 , blah blah <---this text would be highlighted. Naturally there are a dozen or so different bookmarks. I was thinking maybe I co...

conflicting CSS and Javascripts

Hello, I am developing a component for Joomla website. This website has a sophisticated template with fancy css and scripts (namely some K2 components are named) In this component I am using colorbox to display modal picture gallery but what happens is as soon as this component is called CSS properties and functions of javascript of te...

How to use CSS grid framework for custom widths and gutters ?

How to make custom CSS grid framework for custom widths? In my company i get design (PSD) in different sizes in width site like 900px, 920 px, 915px, 973 px etc. and different gutter sizes like 10 px on right, 20 px on left etc. in this type of condition how can i use and take benefir of grid based framework ...

How to display a 100% width stripe in a CSS design using a fixed-grid blueprint?

Hi, Not sure that the title is really describing what I am trying to do. Actually, this is quite simple and widespread usage over the internet : I want in the background some liquid/full width of stripes (with the same height of some div of the design) while my content is using a Blueprint fixed-grid. For instance, this website : int...

Hiding HTML portion from several browsers Conditional Comments

What i want is that i want this portion of html code to be hidden from IE6 and IE7 but not firefox, opera or IE8 but conditional comments not working properly on this portion....I am using separate CSS with conditional comments in the head section But conditional comments for opera are not working and also sometimes Firefox shows strange...

Imitate "onselectstart=return false" using CSS or other non-JS approach?

I have created a button CSS class that uses background images with different positions to display a different image on normal, mouseover, and click states. One thing completely destroying the visual effect is that if I click such a link repeatedly and move the mouse just a pixel, the link text gets selected. Is there a way to achieve ...

Change dynamically css class

Hi there. Imagine that i have the following code: <a:repeat value="#{bean.getList()}" var="x" > <li class="la"> <span> <img src="#{bean.getThumbImageUrl(x)}"/> </span> </li> </a:repeat> I'm receiving a List of elements on bean.getList(). For each element, i'm getting it's image and print it. On the <li> tag...

What are the priorities among CSS selectors

CSS Question: If two different selectors apply to an element, who wins? I know this shouldn't happen, but I want to tweak a legacy application, and the CSS is getting in the middle. ...

Why can't I vertical align this text?

I can't seem to get this text to align vertically. Can someone please tell me what I'm doing wrong? What I want is to center this "test" text with the center of the image on the left which is a submit button. <input type="image" src="send.gif" name="send" value="" /> <span style="font-weight:bold;padding:0;margin-left:20px;vertical-alig...

separate CSS for IE and firefox

What's the best way to have separate CSS for IE and other browsers? I'm thinking of just targeting IE, Firefox and Safari users. Especially now with CSS3 support in most browsers but IE. The various ways to do this that I've come across are loading separate stylesheets conditionally using <!--[if IE]> underscore hack and various other...

Floated elements gaps between but no explicit padding/margin

Hi all, I have the below markup that cannot be changed: <div>Some data</div> <span>More data</span> <a>Link 1</a> <a>Link 2</a> I want it to appear rendered so that the div is all the way to the left and the span is all the way to the right whilst links 1 and 2 are to the right of the span. Meaning: |<div> <span><...

Resources for styling ASP.NET Controls?

I frequently visit Matt Berseth's site http://mattberseth2.com/demo/ to learn some really nice styling techniques for asp.net controls. This is the only site that I have found that does a superb job of styling the controls. Does anyone have any other resources for styling asp.net controls to make them look really good? ...

jQtouch CSS Header Bar

I'm using jQtouch for a small mobile app. Using the default CSS the app looks like I want it to. However, I need to have a header on the left and right of the page. For example, If anyone can point me in the right direction to achieve this I would greatly appreciate it. Thank you! ...

HTML & CSS: How I can make an image's bottom edge align with text?

In my HTML pages I have text with imgs. The top edge of the img is aligned with the top of the text, but I want the bottom of the img to be aligned with the text. How can this be done? UPDATE Now I see this is the default behaviour, but it doesn't happen in my page. What could possibly be wrong? ...

Is there a way to word-wrap text in a div?

I know IE has a word-wrap style but I'd like to know if there is a cross browser method of doing so to text in a div. Preferably CSS but javascript snippets would work ok too edit: yeah referring to long strings, cheers folks! ...

How do I make a Div move up and down while Scrolling the page?

How can I make a div element move up and down the page when the user is scrolling the page? (where that element is always visible) ...

How to align a flash movie to center with "overflow: hidden"?

I have a wide flash movie (to fit in more screen resolution). I would like to align it to a center of a (for example) 85%-wide div (and the overflowing flash remains hidden). How could i do that? edit2: I'd like to do this with css (and not with javascript): (I've replaced the flash with text to make the post shorter, the problem is th...

How do i apply a CSS id when the control is runat=server?

I have an element, like this: <div id="navleft"> </div> I want to make this element runat=server but still be able to specify a css id selector. Is this possible? ...