css

jQuery cycle: how is wrapper width calculated?

I've implemented a cycle effect like the one seen here. In that demo the plugin adds the following inline css on the div that contains the sliding elements: overflow: hidden; position: relative; On my page however it adds this css: overflow: hidden; position: relative; width: 302px; height: 414px; Because of this, part of the conte...

CSS definitions needed to center a dynamiclly created thumbnail image in a containing square frame

Hi all, I want to create an image gallery.Each image is scald dynamiclly so its biggest dimension will be 100px and the other dimension is scaled so it will preserve the original aspect ratio. (For example if the original image width is 200 and the image height is 400 it will be scaled to w:50px h:100px thumbnail) I want that the each...

basic html css design of a box with image and title

Hi. I am not a very good designer. At least not with html and css. I have been using a very simple code like this: <fieldset style=\"color: #000000; border: 1px solid #000000; width: 225px; text-align: left; padding: 5px;\"> <legend style=\"color: #999999; font-weight: bold;\">Headline.</legend> <p>text</p> </fieldset> To output infor...

Dynamic width third column in three column layout

I'm working on a three column layout: <div id="first"></div> <div id="second"></div> <div id="third"></div> I'd like to make it so that the first two columns have a fixed width and that the third column takes up the rest of the space on the page. Just setting percentage widths for everything is an option, but not preferable. An optio...

CSS: Child div overlapping parent

I have something vaguely like the following: <div id="body"> surrounding text <div id="pane" style="overflow: auto; height: 500px; width: 500px;"> lots and lots of text here <span id="some_bit">tooltip appears below-right of here</span> </div> more surrounding text (should be overlapped by tooltip) </div> and: <div i...

How to align text flush with bottom of container using CSS?

In the following example, I want the bottom of the site name text "site name" and the bottom of the menu text "menu 1 menu 2 menu 3" to align flush with the bottom of the container they're in (header). As it is now, the sitename text is some number of pixels above it's container's bottom edge, while the menu text is a different number o...

Webkit Flaws? Why shouldn't Webkit be used as a baseline for HTML/CSS development?

I have started using Safari as a baseline for all of my web development projects, then using workarounds where appropriate for issues with other (mostly older) browsers. As far as I understand, Webkit is the most standards compliant layout engine available right now (am I wrong?), and it appears to be "leading the pack," so to speak, wit...

Maintainable CSS vs. theme-ability

The above seem to be contradictory goals. On the one hand, making CSS maintainable seems to me to suggest keeping CSS structured and orderly, and keeping all the styles of an element together in one place. So for example, the style of a top logo would look like this: #logo { width:50px; height:30px; background-image:url(/images/...

ASP.NET MVC2: how to set paths for the image links continaing with in the CSS file

I our application we have image patches set in CSS file as shown below .HeaderShodow { background:url('../../App_Images/HeaderShodow.gif') repeat-x top left; height:5px; } when we move this application to iss6 server the images or not rendered we have sent css/image/script links with in the aspx file as below <link href="<%...

left div + right div + center div = 100% width. How to realise?

I have three divs and one main div: <div id="container" style="width:100%;"> <div id="left" style="width:201px; float:left;"> .... </div> <div id="centre" style="float:left;"> .... </div> <div id="right" style="width:135px; float:right;"> .... </div> </div> How it is possible to make centre d...

Dynamic (2 levels) Javascript/CSS Loading IE6

Hi all, i am trying to dynamically include js (and css) files into a webpage like this: index.html -> loader_a.js -> a_foo.js, a_bar.js, a_foo.css and so on. While this works without a problem in FF (using appendChild) i cant get it to run in IE6. I've tried various available solutions (adding to dom node, ajax call and eval and more fro...

absolute css positions - firefox plugin to make it faster?

I do all my css work with firebug, using the up and down arrow keys to adjust top and left values. Anyone come across a firefox addon that lets me drag stuff around and then copy and paste the top and left values? edit: I have changed the question slightly from 'easier' to faster. Sorry for any confusion, I am not a beginner looking ...

IE7 ignoring margin in a div following an absolute positioned div

I have two divs inside a container, the first one has absolute positioning. In ie7, the second div apparently ignores the top margin. Padding seems to work fine, but for visual reasons I have to use margin. I know the culprit is the absolute positioned div because if i remove it the following div works fine. This is only happening in i...

Problem with image + text layout in IE 7 & Opera

There is div container and 2 divs inside. It should be image(first div) and text near it with chosen distance between them. The code below works fine in Firefox/Chrome/Safari, but it works incorrect in IE7/Opera. xhtml: <div id="mainContact"> <div id="contactIcon">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img id="pho...

Css cascade problem:Mozilla

Hi Guys, I have a problem in viewing my web app in mozilla. In my web app I have a button whose css styles are as below: .page_button { BACKGROUND-IMAGE: url(../images/pagebutton_bg2.png); BORDER-LEFT:0px; /*WIDTH: 100%;*/ CURSOR: pointer; /*COLOR: #000000;*/ BORDER-BOTTOM:0px; } As above I have commented out the "Width:10...

How to check the browser version and chanage the css

hello , i have created an web page and it works fine in firefox,opera etc and fails in internet explorer 6 so i need to check the version of the internet explorer and change the css code... please help me how to do that ...

CSS display: inline-block and width: 100% does not work on IE6 and IE7

CSS display: inline-block and width: 100% does not work on IE6 and IE7. Does anyone have some solution? Thanks! <style> nav {text-align: justify;} nav li {display: inline-block; white-space: nowrap;} nav span {display: inline-block; width: 100%;} </style> ... <nav> <ul> <li>Home Page</li> <li>Services</li> <li>Clients</li>...

In GWT how to know all the styles applied to a given element (by id or class name)

I have the following problem : in my GWT project there is a "main" css file for the application, inline css in the DOM that come from the application computation and a css file that is bundled in an archive uploaded to the application and dynamically loaded. Now I need for an Element to find which CSS rules are applied, coming from eith...

How can i use js files in master pages?

i have a master page. i try to add js files. vs editor is not draw green color. But no affect my pages with js. i can not use below js. How can i write src? (i can use pickurl) but i don't see effects of js on page <script src="Engineering/EngDynamicsCreationExcel/EngJs/jquery-1.3.2.min.js" type="text/javascript"></script> <script src=...

Can you use the browser specific prefix in front of all css tags?

Can you use the browser specific prefix in front of all standard tags? e.g. #div{ padding:20px; -moz-padding-bottom:10px; } is the above valid CSS for ensuring Firefox has a different bottom padding to all other browsers? ...