css

TextMate's default CSS bundle throws an error when trying to use code complete

I like code complete for CSS because sometimes I forget what values are available for a property. Unfortunately it seems that TextMate's default CSS bundle errors when trying to use it's implementation of Code Complete. The error it generates is... /Applications/TextMate.app/Contents/SharedSupport/Support/lib/codecompletion.rb:319:in ...

Divs positioning problem

I need that this two divs look like one row of table , but thay don't show one beside other . Any help ? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Info-Stanković Inženjering</title> <style type="text/css"> div#wrapper{ width:1004px; ...

Overlap images in CSS

How do I get "mymessage.gif" to show over "bread_wine.jpg". mymessage.gif has a transparent background. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>overlap images</title> <style type="text/css"> <!-- #navbar { font-size: 18px; font-weight: bold; text-align: center; } #thebi...

Divs width problem

My problem is that ratio of width/height (for div with id="wrapper", different is huge) isn't the same on Chrome, Mozilla and IE (IE looks like refuse attribute for heigt at all). Any help, I need two divs fixed size, one beside other . <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-...

Why does wrapping div not expand around floating elements?

I have two columns in a center column. (They are all div tags.) When I set the inner divs to float:left, the outer div does not wrap around the inner divs. Why, and how do I fix that? ...

How can I position something in the margin beside text?

I have some HTML taken from an originally printed document. It has some page numbers: <span class="page">42</span> sprinkled in the middle of paragraphs where the original document had page breaks (for no semantic reason, but just because that's where the end of the page happened to fall). Right now I've just hidden them. But I'd lik...

Can you add noise to a CSS3 gradient?

Is it possible to add noise to a gradient in CSS? Here is my code for a radial gradient: body { color: #575757; font: 14px/21px Arial, Helvetica, sans-serif; background-color: #2f3b4b; background: -moz-radial-gradient(center 45deg, circle closest-corner, #2f3b4b 0%, #3e4f63 100%); background: -webkit-gradient(radial...

Linking to External Stylesheets with HTTP:// or local path

What are the pros and cons of each? Is there a difference? CSS Stylesheets in HTML. ...

HTML/PHP - I need to create a 10 by 10 grid with a 100 boxes, each needs to be selectable

I've created the grid using tables, but can't seem to figure out how to allow the user to select a specific box in the grid. (i.e. user selects 3 boxes, each having xy coordinates, which I would need to store in a database) Maybe I should not be using tables and instead using divs? Any help would be appreciated. NOTE: I'm a newbie to...

CSS Dropdown Issues

Hey, I am a .NET / Java guy and have to do some website stuff. Complete beginner with CSS etc. I've been working with a template and had to convert the menu to a drop down and have been having loads of difficulty. I've uploaded the current iteration and it can be found here with the barebones menu and css pages: http://www.nitricburns...

The attribute of tag a overrid its parent(div)?

I have a link in a div, I want the link color change to red when the div is hovered(not just when the link itself is hovered),however I can not make it work well. This is the exmaple: <div class="witha"><a href="">Test color without tag A</a></div> <div class="withouta">Test color with tag A</div> This is the css: <style type="text/...

How to move an entire group of objects with Javascript

I am trying to move everything contained within the div id "tile", to the center of the web browser. By default the CSS is undefined and it appears on the left side of the browser. What I would like to do is move the entire div to the center using javascript when the button "move" is clicked. The html is shown directly below, and the a...

Using CSS for solid color background across/between table cells

Consider the following code: HTML: <table> <tr> <td>Hello</td> <td>Stack</td> <td>Overflow</td> </tr> <tr> <td>some</td> <td>text</td> <td>here</td> </tr> </table> CSS: table { border-spacing: 40px 10px; border-collapse: separate; } tr:first-child { backgrou...

Adding class to anchor tag inside of repeater in code behind

aspx file <ul> <asp:Repeater runat="server" ID="rpt1" OnItemDataBound="rpt1_ItemDataBound"> <HeaderTemplate> <li><a id="a1" href="javascript:void(0);" runat="server">Text</a></li> </HeaderTemplate> ...

Need help with CSS :: How do I get the image to appear in the background ?

What I want is [http://jsfiddle.net/xkRcN/8/][1] :- My CSS and mark up ...

Question about changing IDs with user control and master page

In my user control I got this inline CSS in which I have only css classes... like I am not setting any attribute or whatever on some ID..got only classes like :- .sp { backgrond-image :url(blah blah); } and so on.. nothing of the sort #id1 { /* set some property here*/ } Now my question:- Do I need to worry about system generated...

CSS problem please help

Hi, I am developing UI for my asp.net application and I have a logon form in which I have a box and inside the box I have the fields like this. (xxxx are the input boxes) Name: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Email: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx I have kept the name and email with input boxes in a div but it works fine on IE7...

Django - Replicating the admin list_display

What's the easiest method to get list_display functionality in my main website (outside of the admin pages). I have a group of elements I'd like to select and perform an action. Any ideas? ...

Sending HTML mail through PHP - strange rendering

I have a simple table: <table cellpadding="0" cellspacing="0" style="width:600px"> <tr> <td style="width:100px; padding:5px; border:1px solid #444">E-mail</td> <td style="width:500px; padding:5px; border:1px solid #444">[email protected]</td> </tr> <tr> <td style="width:100px; padding:5px; border:1px solid #444">Message</td> ...

css sprite problem..image hiding behind another element...need help plz

CSS I am implmenting css sprite like above..the problem that I am facing is that the Image is hiding behind another element that contains my Links.. Is it something to do with z-index property or what ? when I removed the z-index property altogether..the top part of this sprite image appeared and the links got hidden behind it ...