css

Visual Studio tells me a css class is not defined when clearly it is

Hi, I'm using Visual Studio 2008 making an ASP.NET page. In this page I'm using a stylesheet at styles/basic.css When I hit F5 to load the page it loads perfectly fine. Inside the style sheet I have defined a .basic style class along with other classes. But when I use body class="basic", Visual Studio tells me "The class or CssClass va...

How to use css to vertical align mixed elements?

So my boss says to me, "Hey you! Make it so there is a banner at the top our website that has our phone numbers and the signup for our newsletter in one line." Although I am old and easily confused I figured it was high time to stop using tables and do it with css like god intended. <div id="hdr"> <i>Call us today</i> &nbsp;&nbsp; CorpH...

CSS: Labels in table columns

Hello. BACKGROUND: I would like to have small labels in columns of a table. I'm using some implemented parts of HTML5/CSS3 in my project, and this section specifically is for mobile devices. While both facts are not necessarily relevant, the bottom line is that I don't have to support Internet Explorer or even Firefox for that matter (...

jQuery::Scrollable Div does not work

I am trying to create a scrollable DIV using the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <script type="text/javascript" src...

Does style="color: #FFF;" render as #F0F0F0 or #FFFFFF?

When defining colors using "shorthand hexidecimal" (style="color: #FFF;"), is there a defined method for expanding the shorthand? (style="color: #F0F0F0;" or style="color: #FFFFFF;") Do all browsers use the same expansion method? Is this behavior by specification (if so, where is it defined)? Does the expansion method perhaps vary betwe...

Where to use quotes?

Where and how should quotes be used in CSS? width: 150px; /* or */ width: "150px"; height: 50%; /* or */ height: "50%"; font-family: Verdana; /* or */ font-family: "Verdana"; ...

Can't style input field in IE6, Why?

I know, I know IE6 right? Well no matter how strong the argument -- I have to please IE6 at the moment. I have a text input field. I was to style it's font and background colors. But I can't get IE6 to display the changes I'm altering. Here;s my markup and css. <style> input[readonly='readonly'], input.readonly { color:red !...

What is causing my screen to not be flush with the browser. Looks like there is a padding, but there isnt.

I have started to use the CSS framework Bluetrip, and I just noticed that for some reason my layout doesnt line up exactly with the browser. I only have one example to show, http://justcollect.com/ebay_app/index.php/home/index, but if you look closely, my footer doesnt line up with the bottom of the browser. There is some whitespace the...

How do I layout my web page using CSS so that the right-hand column doesn't wrap?

On most of my web site (http://sellsbrothers.com), the right-hand column where I keep the search bar and the ads stays on the right-hand side as I intended. However, on some pages (http://www.sellsbrothers.com/Posts/Details/12670), it doesn't. How do I fix the ones that don't? Thanks! ...

Create a DIV with dynamically expanding width?

I have an interface with some <a> tags, at the end is a div with some more <a>'s that has a display:none attributed to it. When the user clicks a button, it fires some javascript that unhides the hidden div. The problem is I have a border around the containter div, and want it to expand when I unhide the nested div. The issue is that all...

i'm trying to call a set of results from a database, not working

hi, i'm trying to re-use and old website I made for an assignment, but I want to be able to keep the same format across the whole site. this is the html/php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head...

Javascript disabled help

Hi All, I have a simple .html page which uses Javascript to display some popups. Now If the Javascript is disabled I want to show some text with anchor links so if javascript is enabled I should be able to show the popups but if Javascript is disabled i want to display some text and popups shouldnt be displayed. I dont want to use is t...

CSS: Horizontal, comma-separated list with fixed <li> width

Hello, I would like to achieve the following structure: [gfhtfg..., kgjrfg..., asd, mrhgf, ] ^-------^ ^-------^ ^-------^ ^-------^ X X X X (X = a fixed length) I've got a <div> with a fixed length, and inside it an horizontal, comma-separated list (ul) of links. The <li> elements should h...

Correct CSS inheritance behavior for properties that aren't inherited?

So say we you have a CSS property that is not inherited by default. We'll call it "foo" and its default value is "black". Then we make the following html. <div id="div1" style="foo: red;"> <div id="div2"> <div id="div3" style="foo: inherit;"> </div> </div> </div> Since this property does not inherit by default, you'd think tha...

How do I get the border-radius from an element using jQuery?

I've got a div, with the following HTML and CSS. In an attempt to make my Javascript code more robust, I'm attempting to retrieve certain CSS attributes from the selected element. I know how to use the .css() getter to get elements, but how to get the border-radius using that method? jQuery's documentation is sparse. HTML: <div id=...

CSS absolute DIV causing other absolute DIV problems

Hello, I have implemented a chat script which requires an absolutely positioned DIV to be wrapped around the pages content. This is to ensure the chat windows stay at the bottom. The problem is that because of the absolute positioning of this main wrapper, all other absolutely positioned elements (eg. Jquery Auto-completes, datepicker...

jquery ui position fails with margin

Hi, I am trying to use jQuery to position an inpage div (Context-Menu) relative to a clicked tablerow on a webpage. This works fine until I add an offset with either "left" or "margin-left" to the outer container. Using padding-left works.... The relevant code is: $('#supermenu').position({ my: "left top", at: "left top", of: ...

jQuery: Div elements are not showing up

I am adapting the Coverflow technique to work with a div. Following is the html: <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <style type="text/css" media="screen"> body,html { margin: 0; padding: 0; background: #000; height: 100%; color: #eee; font-family: A...

Is there anyway I can fix a webview?

I am trying to load a webpage into a sample webview that I created: public class HelloWebview extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView web...

How to i disable the _moz_resizing?

I am using nicEdit editor and i have added my own custom image resizing script to it. But i want to disable the default _moz_resizing that appears in firefox. I wanted to have finer control over the image being resized. ( Eg: Allow only the image to resize and inherit the width of the parent container. ) So i wrote a custom script. B...