css

Preventing padding propety from changing width or height in CSS?

So, I am creating a site with DIV's. Everythings working out except when I create a DIV, in my css file I create them like this (example): newdiv { width: 200px; height: 60px; padding-left: 20px; text-align: left; } NOW, when I add the padding-left property, the width of the DIV changes to 220px, and I want it to remain at 200px; Let'...

Why is my DIV changing my cursor?

I have two DIV's and when I put DIV #2 inside of DIV#1 and then view my page, when I put my cursor over DIV #2 it changes the cursor to the select (highlight) cursor? I am very confused? ...

Jquery: How do I set a hidden element to display when another element is in focus?

Hi! I'm trying to display contextual help alongside form fields, that is only visible when those fields are in focus or hovered over. I've tried using mere CSS, but the results seem very fragile and inconsistent. Here is my CSS: form .instruct { position: absolute; right: -220px; top: 10px; visibility: hidden; width: 200px; z-ind...

CSS parser + XHTML generator, advice needed

Guys, I need to develop a tool which would meet following requirements: Input: XHTML document with CSS rules within head section. Output: XHTML document with CSS rules computed in tag attributes The best way to illustrate the behavior I want is as follows. Example input: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...

Menu Jumping on Hover

Hi, I have a web app(ASP.NET 2.0 C#). On my Masterpage, I have a menu control, and I am using a css stylesheet to style the different parts of the menu. For some reason, when I hover over the menu, it jumps a little. I think somehow the borders become larger when I hover over it. Heres the styling for the whole menu: .menu { widt...

problems arranging css layers with heading and table

I am having trouble arranging items with the css below. One of the more obvious problems I am having is that The strong text for the headings of the table columns is black, and does not match the strong text in the information above the table. My main problem is that Layer3 will not go to the bottom of the Layer2. I want it to be belo...

Displaying HTML Divs over Silverlight

Is it possible to have HTML appearing above embedded Silverlight? ...

Method to render rounded corners on form submit buttons

What I'm looking for is a clean method to round the corners of all inputs with the class "submit". I've experimented with a number of javascript techniques, but none worked well for form elements. Pure CSS would be great, but, note, the button needs to expand, and will have arbitrary text. Other methods required really ugly HTML cruft ar...

IE6 Elements changing size on hover

View the following page in IE6: http://www.kickitback.com/Shop.aspx Hover over the rows in the table Notice how the rows change width and sometimes borders disappear I've tried putting zoom:1 on various elements and setting widths and heights but so far it hasn't been successful. Any ideas? Edit: I'm using javascript to apply a cla...

Images flickering in IE

Hi, I am facing an issue with IE6 : every time I mouse over an image the image will reload and flicker. This is due to the fact that IE has an option "check new version of stored pages all the time" which is basically "reload everything all the time". I found some fixes on google : Adding <meta http-equiv="Page-Enter" content="revea...

Pagination in Joomla!

Hi every one. I'm a bit new to Joomla! and I'm building my new web site using Joomla! 1.5.8 with a template bought from RocketTheme. The long article in question is a gallery of photos, and I wanted to create a horizontal pagination nav-bar in the footer of the gallery, I just clicked pagebreak where I wanted to paginate in my article i...

Does anyone use ASP.net (webforms) to dynamically generate javascript and/or css files?

I prefer the use of external css and javascript files. There are however many cases where the content of a javascript or css file needs to be dynamic. I'll usually just transfer the javascript or css to inline or inpage code in my aspx page and handle the dynamic stuff there. Does anyone have a better approach? Would there be a way ...

CSS floats with unknown widths don't wrap whitespace with doctype

Two divs, floated left, of unknown width. One of them has more content than fits the page, so it moves below the first (except in IE): http://corexii.com/floatproblem/float.html Add display:inline-table; and the big one wraps its content (consistently across browsers): http://corexii.com/floatproblem/table.html But introduce a doctyp...

Trouble with printing in IE

I'm having some trouble with printing a page from our website. We have a specific page for printing some details which includes images. On this print-specific page, we strip out navigation, branding, etc, leaving only the users' data so they can get a clean print. Much of that data takes the form of images, which may or may not have a...

CSS fluid 'column'

Whats the best way to get this layout in CSS? imagine that I have three divs, two divs inside another.. of the two inner divs, the first one has a specific width set, and the second div is expected to take up the remaining space. Generally I'd end up setting a specific width on the second column, and manage updating this in the end that...

Preventing Browser Text Input Suggestions

Possible Duplicate: How do you disable browser Autocomplete on web form field / input tag? I am building my own local search UI element that gives local search suggestions as you type. The problem I am having is that when I focus on the html text input element my browser (Safari, but could happen in other browsers) displays it...

Need to solve CSS DIV Default width problem: Looks good in IE. Not Firefox.

I've set up an example of what I'm running into here: http://studiozion.com/cssproblem/fix_it.htm. Relevant code blocks... <style type="text/css"> body { background: transparent url(Grade300_Color1.png) repeat-x } .RowMaker { overflow: auto; } .ColumnMaker { float: left; } .ColumnMaker2 { float: right; } .PadTop { ...

Blackberry Bold CSS

I was reviewing the CSS docs for version 4.6 and saw this in the doc: "In BlackBerry Device Software version 4.6, the BlackBerry Browser provides full support for CSS 2.1, excluding pseudo-elements and dynamic pseudo-classes, system fonts, and generated content." I am running the 4.6.0.190 emulator for the bold and I cannot get any padd...

How do I change the browser's scrollbar colours using CSS?

From the Google Results page, the examples I saw were working only in IE and one case in Opera. Is there any way this can be done consistently across all browsers? Also, is there a difference between the main scrollbar of the browser (which appears across the whole page) and the scrollbar in a text area withing the page? Can I manipula...

IE 7 is Turning My Horizontal Nav Bar into a Double Line

I am working on my site in Firefox 3.0.9 (and am very green with CSS) and it looks fair so far. However I have a floating horizontal nav bar at the top that looks like is stepping down. Here is what I attempted so far: 1) I have adjusted the margins, zeroed the padding and changed the width of the background image - all to no effect. ...