css

Tools to design good looking HTML forms

Are there any free tools through which I can design beautiful HTML Forms? ...

How to set a page width and Height?

Using CSS Style Sheet When i run my web page, Horizontal Scrollbar and Vertical Scroll bar is displaying, I want to display a web page in a browser without horizontal and vertical scroll bar. How to set a page width and height according to the browser page. CSS Code body { margin: 0 auto; padding: 0; ba...

How to select nth line of text (CSS/JS)

How to select and apply style on a specific line of text? Like the CSS pseudo-element :first-line, but I want to select any line, not limited to the first. It seems that it can't be done by using only CSS... Anyway I don't mind a JS solution. Update: Well, actually it's only for interest. I'm trying to achieve something like highli...

CSS div height won't expand

I have a sidebar DIV that i want to expand vertically to match its containing div. I have done this to accomplish that html, body, #wrapper, #content, #sidebar{ height:100%; } But the wrapper, content, and sidebar never expand past about 1000px, even when the content is several times that. I believe this is because the content...

CSS Top margin shrinks when window shrinks

Hello, I want a top margin for my webpage of say 100px when the window is maximised, but if the user resizes the window to shrink it I want this margin to shrink. The margin should have a minimum size of say 10px and should shrink in proportion to the window height. An example if what I am trying to emulate is http://www.bing.com/ Ho...

Gaussian Blur onHover Using jQuery

Hi Everyone: I am wondering if there is some way to apply a gaussian blur onto a div using jQuery (or CSS that jQuery can modify). I have looked into blur(), but at least with Safari, it doesn't seem that it accomplishes what I'm looking for. If possible, I want to use fadeIn on the effect, so it blurs gradually. Thanks for any help!...

Why would Google use a font tag?

So, I couldn't help noticing while demonstrating Chrome's DOM browser thing to my brother, that Google uses a <font size=-2> tag. I know this is a stupid question, but from a programming point of view--why would they use a deprecated tag on Google? Is it because it's smaller than using <p class="whatever"> and then creating a style for ...

when inspecting a page with firebug, what is the yellow area below the highlighted element?

Hi everyone, When I am using Firebug in "inspect mode" and the mouse hovers over an html table element, the visible content of my table is highlighted in blue -- like all other elements I have looked at using Firefox. However, there is also an area immediately below the table (past the last row) that gets highlighted in yellow. Does any...

IE7 CSS/Js Bugs...Help!

I'm helping a friend do a little jquery, and along with that is some simple CSS work...but I'm no CSS expert, and things (as usual) are acting a fool in IE7--I think they are fine in IE8, but the client needs it to work in IE7...ahem. I forgot to mention specific problems: The Main nav contains a drop-down. In IE7 it doesn't work. Th...

HTML Page Caching Question

I understand the basics of HTML page caching. My uncertainty relates to how caching works on images, included external scripts, and included CSS stylesheets that the HTML page uses. For example, let's say I have an HTML page that is set to expire in 7 days. The page has 10 images on it, 2 included external CSS (.css) stylesheets, and 2...

Internet explorer spilling content out of container

I am trying to make a bar that will show up on top of sites that belong to company I work for. I first developed it for firefox and then came in horror when saw it in IE. It's completely broken. The bottom line problem is how to make IE spill it's content when it's height is set? Is there a fix for this, or should I take a different a...

HTML CSS Padding-bottom 0 does not work on firefox

I have a table as follow: <table> <tr> <td> *PROBLEMATIC CELL* </td> <td rowspan="2"> </td> <td rowspan="3"> </td> </tr> <tr> <td> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> The first cell of the first row, has a padding at the bottom. Well it's not really padding but it looks like padding and using firebug I can not fin...

HTML element aside from headers <h1><h2>, ect

Hi! I was browsing related issues for my question but I can't seem to find the answer for it. Anyways, I want to know if I can still use the p or div tags instead of header tags when I have already used both (p and div tags) as plain text on my site. The reason is that I only want to have one header tag h1 present in my site. I tried to ...

Changing background color of table rows based on click event with jquery

When the document is ready to be manipulated, jquery adds a class to every even row, and another to every odd row, in order to visually see the different rows. But whenever I update (sort based on header) the rows, they don't update no matter what i try. <script type="text/javascript"> $(document).ready( function( ) { $('table ...

How to give same style to first 2 paragraphs differently in css

How to give same style to first 2 paragraphs differently in css. <html> <head> <style type="text/css" media="screen"> p+p {color:red} </style> </head> <body> <p>first paragraph</p> <p>second paragraph</p> <p>third paragraph</p> <p>fourth paragraph</p> </body> </html> I've tried this but it's leaving first paragraph and stylin...

IE and absolute positioning divs

This problem is only in IE. Consider the following HTML: <html> <body> <div style='position:absolute;left:1em;right:1em;top:1em;bottom:1em;overflow:auto;'> Put more than a full screen of text in here. It should create a scroll inside the div. In IE, it stretches the div out vertically. </div> </body> </html> If you put a ton of...

Custom color schemes for user logged in profiles

I this is a really general question, but what would be the best way to go about allowing users to customize the color of their logged in profile? Should I put css the inline? Nnd can I store the color values in something like a the session so they do not have to be looked up everytime? ...

Placing a Div inside a Div

I have a parent div id=A which has a width of 100%. I want that all the elements of the div A should be placed to the right. So I added another div id=B inside A and did a text-align=right on the div A. The width of B is 600px. However the controls appear left aligned in A. Any suggestions? ...

Add a bottom border to a div

I am trying to add a bottom border to a div .divLast { top: 0px; margin:0px; padding: 0px 2px 2px 3px; border-width: 2px; border-bottom-width:2px; border-bottom-color:White; width: 100%; } However the bottom border does not appear white. Any idea? ...

Separate textboxes and buttons in css

I would like to have a robust CSS that would have all forms I have looking the same. I encounter a problem when defining CSS properties for the buttons and textboxes here is the css #content .forms input { border: 1px solid #CCCCCC; background-color: #FFFFFF; } I would like to have CSS for the buttons separate from the butt...