css

Get background color to fill full height of div

I have a div that has fixed height and a background color - as you can imagine the background color does not expand to fill the full height of the div. I also have 4 divs within this container div for rounded corners. I have included the code below. How do I get the background color to extend to the bottom of the container div regardles...

Converting all uppercase letters to init caps.

I was wondering if there was any way using only CSS, (and this CAN be browser specific CSS) to convert all uppercase text to words that are only initially capitalized for example: I YELL WITH MY KEYBOARD would be converted to: I Yell With My Keyboard EDIT: I realized I wasn't clear enough in my question, the text was entered capitali...

What is the best method to code a logo with slogan in a header?

Which method is best? <div id="header"> <a id="logo" href="#"><img width="172" height="80" src="logo.jpg" alt="Clevex logo"></a> <h1>slogan of company</h1> </div> <div id="header"> <a id="logo" href="#"><img width="172" height="80" src="logo.jpg" alt="Clevex logo"></a> <p>slogan of company</p> </div> <div id="header"> <a i...

How to space some DIVs in columns without a <br />

I'm trying to have two or more columns worth of DIVs for input elements in a form. It's a very complex form, and some elements will be hidden and shown depending on some answers. The problem is I can't get the DIVs to space accordingly in IE6 while having an effective hide/show. This is what mostly works: .first_column { float:left; ...

Should i give float to every element or to just need to give to first element ?

Should i give float to every element or to just need to give to first element ? if i want to set all element horizontally. element-1-fixed-width element-2-no-width-defined element-3-fixed-width element-4-fixed-width or i should set float:left to some element and float:right to some element? ...

What tag should be used to make Form layout if we can't use only pure semantic way?

i know it is pure semantic way <form action="" method=""> <fieldset> <legend>Contact Form</legend> <label for="name">Name</label> <input name="name" id="name" size="20" /> </fieldset> <form> But some time for some design purpose it's not sufficient to get needed style. so my qu...

Why is <div /> not treated the same as <div></div>

I was just testing this and in both IE8 & Chrome I see the same thing, empty (styled) divs are rendered differently depending which way you do it. It annoys me because the former seems so much neater. Why? EDIT: thanks for the clarifications on XHTML Vs HTML. Currently I have this: <html> <head> <meta http-equiv="Content-Language" con...

Correcting webkit text stroke in Sass

I'm using Sass to generate my CSS stylesheets. I want consistent typography, so I want to use the CSS rules from http://orderedlist.com/our-writing/resources/html-css/thinning-text-in-webkit-safari/ to thin the text in Webkit-based browsers. I thought this would do the trick: body -webkit-text-stroke: 1px transparent @media only scree...

z-index not working properly in FF3, works in IE & Chrome

So I was expecting problems getting my site design working on IE, but not FF. However after some investigation I've narrowed it down to this simple test case. <head> <meta http-equiv="Content-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Test</title> </head> <body bgc...

Can I get consistent CSS colors across browsers?

I'm testing a new site, and I have a div with background-color: #bbf6bb; That seems innocuous enough to me. And yet, on my MacBook Pro, the color looks very different in Firefox 3.6 vs. Safari 4. In Safari, it's the color I'd expect from the hex value: a pale green. In Firefox, there's a definite bluish tint, making the color turquois...

What's stopping my page's JavaScript being invoked?

Hello y'all! Now I'm still learning, so forgive me if this is simple to some of you. But my Joomla-powered community site is having a bit of difficulty since updating JomSocial, a Joomla component, to 1.6 today. I think something is stopping other JavaScript being loaded on the homepage and other pages too. If you look at the site: h...

How do I create an animation of scrolling text with just HTML and CSS (or java i guess) like apple used to have on their livepage?

I have a banner at the top of my website that is blue with a light radial gradient on the left side. I want to have white text animated that scrolls up on the right side of the banner. I want it to fade in as it appears and then fade back out. I would like to do this without the use of Flash, and as little Java as possible. I can wo...

centered fixed width layout breaking in IE6

I am usually using this code div#wrapper{width:900px; margin: 0 auto;} div#header{float:left; width: 900px;} div#sidebar{float:left; width: 300px;} div#content{float:left; width:600px;} div#footer{float:left; width: 900px; clear:both;} and I have this markup <div id="wrapper"> <div id="header"></div> <div id="sidebar"></div> <...

Balanced two column layout using CSS

I have the following page: http://community.mediabrowser.tv/topics?category_id=5&amp;status=published (sample no longer as relevant since it contains a fix) It is composed of a bunch of divs with the class section, which contain a ul of dynamic length (some are short and some long): <div id='section'> <ul> <li>an item</li> .....

Make a table with height=100% to properly contain a div with height=100%

Hi. I have a table with a height of 100% and a fixed position. Within it I want to have a div with height of 100% that gives scrolling on overflow. The trouble is the table starts behaving strangely if I put more content in the div than its height can take. The scroll do not appear as it is supposed to, and instead the table gets larg...

How can I get a single character to center identically in all browsers and operating systems?

I'm using CSS3 border-radius to create circular buttons on this site: http://hexpreview.com/ However, due to font rendering differences between Mac and Windows (not between browsers), the centering of the button's text within its bounding circle is inconsistent. Buttons render properly in all CSS3 capable browsers in Windows, but not i...

Fixing problems on a site that only breaks on IE7

I did a new Drupal theme for my site based on the Zen theme. Since I am on Windows 7, I did testing with IE8, Firefox 3.5, and the most recent version of Chrome. The site looks great in all of those, but I just found out that it breaks on IE7. Unfortunately there is no way to put IE7 on Windows 7, so I'm at a loss for how I am going to f...

How to make div always top using css?

Like alert bar of stackoverflow here. It should not be position:fixed,because it's not supported by all browsers. Absolutely,neither will position:absolute do. ...

Is it there anyway to make a div within a div 'breakout' of the parent div without specifying widths of child, just childs elements

ie I have a div, below is a hidden div, which is wider than the div above. I want to specify the div inside to have elements with greater widths than the div above. these elements right hand side is aligned to the right hand side of the div above, but since it is wider, want the left hand side to break out. The div below is on a diff la...

What is the Proper Escape Formatting for HTML and CSS Within an XML Document?

I have an XML data source that has HTML & CSS formatted data contained in one of the document nodes. What is the proper way to escape this data so that I can properly parse it? For clarification, I am using TouchXML in Objective-C to parse the data. (Not that it should matter but I wanted to include all pertinent information.) Any help ...