css

Style to remove all styles

Is there any way to apply a style that will effectively block the application of any applied or inherited styles for that object and any contained objects? ...

Should I use em or px?

I'm starting off a new web project and I'm wondering whether to use em or px for the layout and font sizes. Despite the fact that most browsers now support text and image zooming regardless of whether fonts are defined in px or em, the community support for using em is still strong. But there are 2 problems I see with using em. Fir...

A Sticky footer than doesn't apply to all pages

Hello, I'm currently working on a website that needs a sort of sticky footer, but not in all places. So, http://www.hostcule.org/newsite/ For the home page, the footer stick to the bottom automatically, but for other pages, it doesn't such as http://www.hostcule.org/newsite/about-us How do I, using CSS, get it to stick to the bottom? ...

Is valid HTML5 OK to use now?

I've been reading about HTML5 and would like to start using some of it, particularly datasets as I've found an interesting looking jQuery plugin that I can start using... http://www.barklund.org/blog/2009/08/28/html-5-datasets/ Now, I understand that older browsers like IE6 may not like having extra attributes in there and may not know...

Override property in "style=" attribute?

I am trying to adjust the position of the background image of a button in CKEditor. CKEditor hard-codes button images with background-position: 0px 0pt. I don't want to change this, as it seems to be in the editor's core. I can, however, set a custom class for the button and style that in the style sheet. But because the background-po...

Applying html formatting in email's body

I am still trying to figure out, why i cannot apply html formatting in the body of a custom email. I am sure i am missing something, or i need a new pair of eyes! Here is the info added to the of the web page <head runat="server"> <link href="~/MyStyle.css" rel="stylesheet" type="text/css" /> </head> Mystyle.css contains the fo...

How to abstract the data away from the design in web pages?

What are ways of keeping the data separate from the design of a webpage, so that if you redesign the site, or you want to provide the ability for users to customize the layout, it would be really easy to do so. ...

background image not displaying

can someone please tell me why the background image is not displaying in my php code. #wrap-iframe{ background-image: url(bg_01.gif); background-repeat: no-repeat; border:0 none; min-width:760px; min-height: 700px; } this is the CSS i have. the div box is displayed flawlessly. the image url is correct. if i inlcu...

CSS margins: aligning a list against a float-left image

Hi, The following is my first cut at coding-up a reddit-like comment in html+css. I have a few questions about css and the general structure: How do I get the comment body ("The King took off his hat...") to align with the comment head ("Nathan, posted...") and the comment tail ("reply permalink ...")? I tried making the margin-bottom ...

Set a:hover based on class

I have the following HTML: <div class="menu"> <a class="main-nav-item" href="home">home</a> <a class="main-nav-item-current" href="business">business</a> <a class="main-nav-item" href="about-me">about me</a> </div> In CSS, I want to set the a:hover for these menu items to a particular color. So I write: .menu a:hover { ...

Vertical dividers on horizontal UL menu

Hi, I'm trying to create a horizontal navigation bar(No dropdown, just a horizontal list), but I'm having trouble finding the best way to add vertical dividers between the menu items. The actual html is as follows: <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul> The current css is...

Will margin and padding properties retain their specified values if…

Hi Assume width of a viewport (display area of a browser) is 800px and that margin and padding properties of some html element E are set to values of 200px and 300px. a) If we resize the viewport to width of 300px, then E will adjust its size to fit into the viewport – in other words, when viewport was resized, the sizes of E’s pa...

Does the percentage value refer to the width of the containing block?

Hi, We can set the padding and margin properties of an element E using either pixels or percentages. A) I assume that when we use percentages, the percentage value refers to the width of the containing block? Thus, if E is declared directly inside <body> element, then the containing block is <body> and percentage value refers to widt...

List images in HTML table using 'float: left'

I have a number of images of very differing height and width that I need to display in a web application's dialog box. Putting the images into a table won't look good, as some very wide images will stretch the whole column, producing a ridiculous looking result. Making all images float: left comes very close what I want to achieve: All...

How to increase the angle of italic text?

I want to make a logo using html css. Can we increase the angle of italic text using css or javascript? ...

[html/css] Forcing items to stay on same line

This should be fairly simple, but I have not been able to find anything usefull when google-ing. What I have is some text and some icons that I want to ensure that stays on the same line. For example I want this: Text goes here and eventually we run into the end of the line [text][icon] or this: Text goes here and eventually we run i...

Is there any kind of CSS library out there?

I was wondering if there are any kind of CSS libraries like a Yahoo CSS Library? Basically I am looking for something akin to JQuery but for CSS instead of JavaScript. ...

Right angle with CSS/Javascript?

I have a design that I'm currently slicing that features a lot of right angles (Example: http://grab.by/1jli ). I was wondering if a CSS or Javascript (jQuery) solution exists to pull this off? Otherwise I'm going to have a ton of sprites with these crappy things in them. Just a heads up, I've already tried "Corners", the jQ plugin, and...

menu with jquery

I want to make a menu for the admin side of a website and when I saw the top bar of stubleupon I wanted to make a menu with same style, always on top even when you scroll down, and has drop down items. here is the link to sumbleupon exemple : http://www.stumbleupon.com/su/2qQfq3/www.thevirtualpiano.com/ and I am not very good in javascr...

Show window inside any web page

Hi, I want to implement a utility for myself that should provide a small console where I can execute random JS in any browser (much like Firebug's console - I don't reinvent the wheel, I just want to do something I need and just have fun doing it). So the usage use-case would be this: Click a bookmarklet from any browser. It show...