css

how to get the menus in a treeview format either in css or in javascript

i know to work with menus in asp.net(treeview contril)except by using treeview control in asp.net how to get the menus in a treeview format either in css or in javacript, any idea?? ...

Should we put print css at bottom?

Would it be better if we put print css at bottom just before </body> like yahoo's recommendation for js because only few people will take print and if we will put at bottom then it will be accessed after screen.css and html. ...

Table data causing horizontal scroll

I've got a table on a webpage, with (say) 8 columns, and it's worked just fine until recently... A user registered with an email address for a display name (not a huge issue, but the email is massive). Now, as one of the columns is a 'reported by' containing username, any pages with said user on them now have a massive 'reported by' col...

Get script path

In CSS, any image path is relative to the CSS file location. f.ex if I put the CSS file in /media/css/mystyles.css and use something like .background:url(../images/myimage.jpg); The browser will look for the image in /media/images/myimage.jpg which makes sense. Is it possible to do the same thing in javascript? F.ex if I include /m...

How to apply class as per the Count of the li tag?

Here is the structure of the HTML <div class="submenu"> <ul> <li></li> <li></li> </ul> <ul> <li></li> <li></li> </ul> <ul> <li></li> <li></li> </ul> </div> If there are three UL the the I want to add three-col class. two UL then two-col ...

jCarousel, IE6 and Fixed Width

We are using jCarousel on our websites to display images. Simple enough. We have fairly flexible layouts so the carousels are not always the same width. FF, IE7+, Chrome, Safari etc work perfectly well taking up the space available. However IE6 ends up sending the jCarousel script into a loop and warns that a script is stopping the pag...

Can we use any other TAG inside <ul> along with <li>?

Can we use any other TAG in <ul> along with <li>? like <ul> Some text here or <p>Some text here<p> etc <li>item 1</li> Some text here or <p>Some text here<p> etc <li>item 1</li> </ul> ...

Is the HTML <base> tag also honored by scripting and CSS?

The base HTML element provides a base for relative URIs in the HTML. Must JavaScript and CSS also honor it for relative URIs issued in them e.g. JavaScript location.href = "mypage.htm" or CSS h4{ background-image: url(myimage.gif) }? Any browser. ...

HTML/CSS: Why is body not stretching to its contents?

Take this trivial example and open it: <html> <body style="background-image:url(http://upload.wikimedia.org/wikipedia/commons/2/21/Mandel_zoom_00_mandelbrot_set.jpg);background-repeat: no-repeat; background-position: top center;"> <div style="width: 8000px; border: 3px solid red;">Demo</div> </body> </html> The page is...

JavaScript Modal is Too Big for Screen

I have created a modal window using the Prototype JavaScript framework and the following object: var Modal = Class.create({ animate: function () { this.step = (this.step + 1) % 31; if (this.throbber) { this.throbber.setStyle({ backgroundPosition: 'center ' + this.step * -33 + 'px' ...

Library for making static websites with HAML/SASS/CSS framework

I'm looking for a library or a collection of libraries that work together with the following requirements: HAML and SASS can be used. Have a small server capability to see HAML/SASS compiled every time I refresh my browser. (I don't want to start a fresh Rails app, though.) Works with popular CSS frameworks. (Doesn't have to be all, bu...

How to hide the text box blinking cursor?

I need to hide the text box blinking cursor in CSS / Javascript. Is it possible? ...

width of div is effected in IE7 by contents of completely other div

Here is an example of an html page that consists of a header and a footer and a div that contains another div which contains some content: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Tes...

Which css hacks for IE 6 and 7 are future proof?

Which css hacks for IE 6 and 7 are future proof? i mean if i use then then they would never create any problem and their patch will never be implemented? manage 2 css one for all and one for IE is time consuming and it adds one extra style sheet also. and if any hack can solve problem within main css then it's a timesaver and when multi...

Correct way to leave empty elements in xhtml?

Hello. I've been experimenting with xhtml and now I'm wondering that is there a valid/correct way to add empty elements. Short question, but here's the two ways I've been using: <div> </div> <div>&#32;</div> <!-- Same as space --> Hope someone knows an answer for this. Thanks. ...

swapping text and image order using CSS

I need to swap the visual order of 2 elements using CSS HTML order: <div id="text-content"> .... </div> <div id="header-image"> .... </div> Visual order required: ______________________ | image | | (fixed height) | |______________________| ______________________ | text | | (v...

Browser doesn't refresh CSS formatting

i'm using java script to dynamically create an element and populate it with content. after i appended it as a child to an existing element of the current dom tree, the browser ignores my defined CSS. Using firefox i installed the web developer toolbar and noticed that when i turn off css style sheets and turn it on again, the element is ...

Is using a jQuery theme for your entire website wrong?

Hi, I've recently been messing around with jquery(ui) and now I want to add some jquery bits to my personal website. Well, the themes produced by Theme Roller are really awesome, and I'd like my entire website to look like that, not just the few jquery enabled parts. So, is it wrong to use css classes as listed at http://jqueryui.com/doc...

Asp.net site diplays differently on coworkers computer

I have an asp.net site that displays the way I want it to on my computer in IE8 and firefox. On my co-worker's computer the page content gets pushed down below the left side menu. We both have the exact same version of IE8. I'm using divs and css for positioning and a Masterpage. body { background-position: center center; fon...

How can I extend the background of an element beyond its container?

I have a div that contains an h3 tag, and i want the h3's background to extend beyond the containing div tag to the edge of the page. Is there a way to do this in CSS? I considered absolutely positioning the h3, but I don't know the size from the edge of the screen to the edge of the div (where I want it to be) since the div is centered....