css

HBox Image as BorderSkin

I've designed a pretty 6pixel border for an HBox. It's a .png file and I tried setting it as the border skin like so: HBox { border-skin: Embed('../graphics/skins/border.png'); } However, when I run the application, the image is used for the background instead of the border. How do I fix this? ...

Combine CSS Attribute Selectors

Hi, is there a way to combine CSS2 Attribute Selectors like tr[id^="foo" AND id$="bar"], so it selects all <tr id="foo_something_bar"> but not <tr id="foo_something"> or <tr id="something_bar"> ...

position in CSS

what is difference between relative position and absolute position is CSS eg .style { position:relative; } .style { position:absolute; } ...

div center does not work for IE

Hello, I have this css position:relative; margin: 0 auto; top:50%; width:15px; height:15px; background-color:#fff; -moz-border-radius: 15px; -webkit-border-radius: 15px; cursor:pointer; Its centering fine on chrome and stays on top for IE and ff. removed and changed position: whats wrong here? Thanks Jean ...

How to style a standard GWT component (TabBar) differently?

I am using a TabBar and I want to style the component in different ways. So one time this style, another time that style. I thought this will work but it didn't: TabBar t = new TabBar(); t.addTab( "1" ); t.addTab( "2" ); t.addStyleName( MyResources.INSTANCE.css().slickTab() ); And: public interface MyResources extends ClientBundle { ...

Increasing <div> height when there is overflow

I have a <div> that is set to a certain height. Is there a CSS property that allows the height to be increased when there is overflow? ...

How can I make jQuery select an element in the style of CSS?

<div id="id" class="div-style"><img id="id" class="img-style"></div> I would like to use the id attribute as a way for jQuery to select the element, and the class attribute for CSS to style it. My guess for jQuery selector ran thusly: $("#id .div-class") and $("#id .img-class") This returns the error "Selector expected" ...

Adding StyleSheets Programmatically in Asp.Net

I want to add StyleSheets programmatically in the head section but one of the examples I saw seemed to need to many lines of code to add just one style sheet even though I may need a lot: Example Code: HtmlLink css = new HtmlLink(); css.Href = "css/fancyforms.css"; css.Attributes["rel"] = "stylesheet"; css.Attributes["type"] = "text/cs...

how to center text vertically in html using css only

Hi All, i have a very simple html. due to some limitations, i cannot modify the html content. I want to center the text vertically only using css. <html> <head>...</head> <body> <div>Ops, the webpage is currently not available</div> </body> </html> Note that the size of the html can be variable. In additional, if the text cannot be...

CSS: how to move element from one column to another one without changing the html ?

hi, I'm using css to edit the content of a page (NB. I cannot edit html code). I have 2 columns div1, div2. Each columns have several children (containing text). If the block has 2 or more lines of text all successive content is automatically moved down. I need to move a chidlren from the first column to the second one, in the middle....

Chrome input[type=text]:focus "border"

i see that chrome puts a thicker border on :focus. but it kind of look off in my case where i use border-radius also. is there anyway to remove that? ...

Confusions with CSS and JavaScript relations ?

I have table cell which has class "cellActive". Which has following defination .cellActive{background:"#DDDDDD"} Now i am trying to read the background color property for the cell and it comes null/"". var bgColor = cell.style.backgroundColor; // returning "" Is that something mistake on my part of its by behavior. If CSS class is...

IE layout issue in XHTML

Hi, I am developing my first XHTML web page and I am facing issues on IE 7/8 (not a surprise I guess). If you go to: http://gtc.wcreations.net/ortho/eskulap/test.php and open it in IE8, then after navigating to: Dla pacjenta menu item and then "ABC PACJENTA" you will see that whole menu list is being refreshed anytime I hover to differen...

A rule doesn't appear in the Style tab of Firebug

Hi, i have this page. login: [email protected] password: m You can see two selects in the filter for which i have this rule in gente.css: td.select label{ margin-left:12px; } The problem: the rule is applied but doesn't appear in the Style tab of Firebug. Any idea? Regards Javi ...

css opacity not working in IE7

I have this test page : http://jsfiddle.net/VWnm9/7/. The image is correctly faded on all my computers running IE7 or IE8, except for one computer that runs IE7 and doesn't fade the flower, even in noext mode. The page is : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;...

CSS - How to align image left bottom to the text block?

As this image ? ...

How to replicate the styling of html heading tags

Can anyone tell me how to replicate the styling of a <h3> tag using CSS? ...

jQuery set child CSS attribute problem

I have a child element of a div named "bob" that's class is '.divTitle' <div id="bob"> <div class="divTitle"> <a href="#"> <h1>Title</h1> </a> </div> </div> I am trying to set the background color of "divTitle" to red but for the life of me can't get this to work. Right now I am trying two things... $('#bo...

Help for CSS Menu Dropdown, FF OK and IE6 Problem

IE Problem, FF OK. Please help..???? The problem is when hover in menu Transaction to show dropdown. Screen Shoot problem click here This is my CSS : <style type="text/css"> #dolphincontainer { position:relative; height:56px; color:#E0E0E0; background:#143D55; width:100%; font-family:Tahoma; left: 0px;} #dolphinnav{positi...

How to reset elements to their original state, after a chain of manipulations?

After a bunch of animating, adding classes and setting css styles. is there an easy way to reset an element to be back in its original server delivered state? ...