css

Selenium: can not locate link in table

I am writing Selenium script. For a html page include a table, I can not use "css=table tr:nth-child(2) td:nth-child(3) a" to locate the link in the table. Selenium IDE give me the "[error] locator not found". But use "css=table tr:nth-child(2)", it can locate to the row. So am I mistake for the css locator, I think adding the "td:nth-...

How to serve stylesheet in Django

i want to use css in Django templates..If i give CSS with in the templates it gets working. But i want to use in static serve manner. settings.py DEBUG =True MEDIA_ROOT = 'C:/WorkBase/Python/first/static/' MEDIA_URL = '/static/' ADMIN_MEDIA_PREFIX = '/media/' TEMPLATE_DIRS = ( 'C:/WorkBase/Python/fi...

How to make <option> wider than <select> in IE6?

The <select> has a width of 60px, but the content of <option> is longer than that. Which is hidden in IE6. How to fix that? ...

Font of page title appears different on browsers in Windows and on Linux

Hello, On my wordpress blog, the page title appears differently in windows and on linux. On Linux in Firefox its smooth and appears as it should,but on Windows in both Firefox and IE it has rough edges. On Windows, it appears http://img691.imageshack.us/img691/4592/picwindows.png . Any way to fix this ? The CSS is as follows : #pageti...

Can you explain css code like below?

margin-left:-500px;margin-right:-500px; What's the meaning ?Why do it like that ? ...

Calling JavaScript functions contained in .js file

I have a JavaScript file contains various string functions. It is a separate .js file. I also have a .css file that defines the styles of Input Boxes. Some styles are executed on certain events like: focus etc. I want to call the string functions in the .js file on Input Box events. I want to know: (1) Whether to call the functions fr...

IE 6 css issues with absolute positioning

I have a absolute positioned element with proper top and left. On page load the element doesn't show up but whenever I apply any css from IE Dev Toolbar it shows. Can anyone please help me finding a solution for it. Note: I already tried giving relative position to its parent. ...

JQuery/Javascript pageflip

Hello guys, can somebody tell me how this pageflip is implemented, and any samples would be appreciated. http://www.cataloguecentral.com.au/Catalogue/BIG-Christmas-Gift-book-6610 Thanks ...

How do you make the area of a div clickable? Not the whole div!

If you have a background image in a div with a (drawn) button in the middle and some other drawings around it. How do you make the button clickable but not the whole div because I don't want the user to click the drawings around it, if that makes sense!? I am I wasting my time playing with padding and margins? Should I just create two di...

Can we use 2 different url on same anchor tag for javascript disabled and enabled condition ?

Can we use 2 different url on same for javascript disabled and enabled condition If javascript is enabled then link should be <a href="link1"> and If javascript is disabled then link should be <a href="link2"> ...

What shapes can you Draw in Css?

I recently came across a trick for drawing triangles in css (it's the 'point' of the comment). And it's obvious how to draw a circle and rectangle/square. It seems like this would be enough to draw pretty much any shape (as long as you don't mind ignoring IE for circles) <span class='red-triangle'></span> <span class='blue-circle'></spa...

dynamically set width of ul based on combined width of li tags

I'm trying to create a horizontal tab menu. how can i get the combined width of all the li tags and assign the width to the parent UL using jquery? thanks in advance! ...

CSS: make Row background span accross all columns?

I have a row <tr> that has a few columns <td> in it. I have a background image set to the <tr> but it restarts the background image for each <td> as if it were individually set for each <td>. I would like the one image to span across the background for all the columns in that row. Is there a way to do that? here is my code: <tr bgcolo...

CSS need inline element to appear next to { display: block; } element

I'm trying to introduce a checkbox next to another element. The problem is that the a element has been made a "block" by the CSS so that it appears at the correct height and width. Being a block, I can't simply put another element next to it and hope it shows up there -- it shows up just below it. A self-contained sample is shown bel...

Why can't I properly style a blockquote in Wordpress?

On the design I just created for my website, I have a blockquote styled with two quote images using the span technique in css: blockquote { background-image: url(images/openquote.jpg); background-repeat: no-repeat; background-position: left 5px; padding-left: 30px; padding-right: 30px; font-style: italic; } blockquote span { background...

What is the design best practice for setting the page width for mobile web pages?

Different browsers on different phones have different screen resolution. Is there a best practice in the community to set the width to a standard size, so that it works on most moderns phones and browsers? ...

Inherit Color from Parent and Perform Color Shading in CSS

Is there a way in CSS to take the active color defined by a CSS class and either darken or lighten the color to be used in another CSS class? DEVELOPMENT SCENARIO: We have a dialog that uses a CSS style that defines its color as a shade of gray. In the dailog, we have buttons that use 2 different CSS styles that simulate the button up ...

CSS - position fixed and bottom

If you turn off javascript on stackoverflow you will see the noscript-warning on the top #noscript-warning { font-family:Arial,Helvetica,sans-serif; position:fixed; top:0; left:0; width:100%; z-index:101; text-align:center; font-weight:bold; font-size:120%; color:#fff; background-color:#AE0000; padding: 5px 0 5px 0; } Question. How t...

Reset CSS for a certain area of the page?

I am working on a CMS. One of its functions is the editing of HTML "chunks" in a WYSIWYG editor that are displayed as individual pages. I have an area in the CMS where these chunks are previewed. The chunks rely on a "foundation.css" file that is loaded into the WYSIWYG editor. It does some small resets, defines a default font and tex...

Cannot get CSS Drop-Down above Flash File

I have searched everything and tried every method I can get my hands on and cannot get my CSS drop-down menus to display above my Flash file. You can go to: http://beta.riverlifefellowship.com and username is 'riverlife' and password is 'flow' (without the quotes on both). I am using swfObject and have the <param name="flashvars" value...