html

vertical positioning of inline li text relative to background image

I'm using an ul as an inline menu, with a background image for each li. The ul is absolutely positioned. No matter what I do I don't seem to be able to move the text of each item vertically with respect to the background. Horizontal is fine with text-align: center. The background for each 'button' is of critical height as I am integratin...

IE 6/7 and floats

My forehead is bruised out of frustration over this issue. In the standards compliant browsers my layout looks fine but, of course, IE7 and IE6 like to make a hot mess of everything. I'm trying to make a simple header that has some text to the left and a form inline on the right. The header is 835px wide and centered using auto margins. ...

Why CSS opacity is affecting div above it?

I have overlay inside HTML element and inside that overlay I have element that contains message. But for some reson upper element gets also opacity from element under it. EDIT: I only have tested this with latest Firefox. Here is CSS example code to explain problem: .overlay { z-index: 1000; border: medium none; margin: 0p...

Why wss 3.0 dosen't display image properly?

Hi, I have my own custom webpart. Inside this webpart I would like to display transparent gif. Unfortunately it dosen't do it. I was tryign to use html img tag or asp.net image tag. Src property for the image is set properly because it displays image icon insted of "X". X would be proof of the wrong path under src. As I said it is alrig...

How can I select the first element of a node with XSL?

I'm coding my first website using XML+XSL. The xml I am transforming have this section: <page> <news> <highlights> <entry> <mini>x_thumb.jpg</mini> <title>title</title> <text>text</text> <image>x.jpg</image> <link>x.html</link> ...

Redirecting to another PHP page, then going back with filled fields

I have been needing a way to, once I redirect to a PHP page to review data, have the ability go back to the original page with the fields filled as they were before redirecting. I can think of several messy ways of doing this but nothing I am willing to do. Is there a standard way of doing this? ...

Python: Detecting the actual text paragraphs in a string

The big mission: I am trying to get a few lines of summary of a webpage. i.e. I want to have a function that takes a URL and returns the most informative paragraph from that page. (Which would usually be the first paragraph of actual content text, in contrast to "junk text", like the navigation bar.) So I managed to reduce an HTML page ...

Folding/Unfolding table with HTML/Javascript.

I have a table which is pretty big, so I need a way to unfold it all the time, and unfold it only necessary. How can I do that with HTML? Do I need Javascript for this? If so, what's the code for this? ...

Simple HTML Dom Parser, More Woes

Hello all, I am making use of the PHP Simple HTML DOM Parser to get the number 3869 from a HTML page. I tried this and a few other variations. foreach($html->find('span[class=searchresults_tab_number]') as $element) { echo $element->innertext . '<br />'; } But I keep getting nothing returned! All I need is the number from...

PHP - templating with custom tags - is this a legit use of eval?

Overview Around the end of 2009, I wrote a simple templating system for PHP/HTML to be used in-house by our designers for brochure-ware type websites. The goal of the system is to allow templating in otherwise pure HTML via custom tags that are processed by PHP. For example, a templated page might look like this: <tt:Page template="tem...

HTML: "send to a friend" link

hi, I need to add a "Send to a friend" link to my website. When a user clicks on it, their e-mail software should open and the e-mail should be already filled. Subject: Website Name Body: Link to website, short description is that possible ? thanks ...

Is there a html validator that can point to a mismatches like this?

Occasionally press a hyphen so the first symbol in a html file (php generated) was not a tag start, but a general symbol. Firefox didn't care about it (it was a joomla source), but IE acted like I did something more dangerous: not centered table, misaligned text, looked like a complete mess. I know that there are always things like this,...

Vertically aligning li items in div

I have list items that displayed inline. I want to align them vertically inside the green div. <div id="topMenu" class="topMenu"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Documents</a></li> <li><a href="#">Articles</a></li> <li><a href="#">Info</a></li> </ul> </div> .topMenu ...

How can I type in a textbox and have whatever I typed simultaneously appear in a div?

Hello All, I want to have it so when I type into a textbox (or an input field) and have whatever I am typing simultaneously appear in a div or just other place on the page? The stackoverflow site does this when we type up a question. As we type a question, it shows whatever we are typing in a box below the textbox. Hope my question mak...

Work around to make table-cell CSS render properly in IE6/7?

Hey, My site is showing up fine in IE8/FF/Chrome but I can't figure out how to make it function with IE. The relevant CSS: #maincontent { display: table; } #content { display: table-cell; width: 620px; padding-left:4%; padding-right: 22px; padding-bottom:15px; } #sidebar { display: table-cell; width...

PHP+XHTML+CSS+JS - Syntax Highlight

Hi Does anyone know a website where you can paste some code and it generates highlighted source code? As HTML, like Geshi, with span tags with color styles on them? ...

What is the difference of placing the event listener on the HTML tag versus the BODY tag?

I was looking at google.com source and saw: <!doctype html><html onmousemove="google&&google.fade&&google.fade(event)"> I did not know the HTML tag could accept event listeners. What is the difference of placing the event listener on the HTML tag versus the BODY tag? Is there any difference in the event bubbling? ...

ASP.NET MVC "Tidy" Html on the fly

I'm wondering if there's any kind of tool out there to Tidy Html on the fly. Currently in my app, I use a MasterPage and then my Views are loaded into the Masterpage. The problem is that the <asp:content runat="server" ... /> always adds additional whitespace/linebreaks in the output HTML. What I'd really like to do is clean it up so ...

Jquery select first and last divs from a list of items.

Hi, how do I use jquery to select the first and last item divs in the following snippet and apply a different additional class to each: <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> These will be somewhere on a web page. Thank you. ...

How to get rid of border around and image used as a link in Firefox?

Weird question I think its more of I am not sure what it is called. But I have an img wrapped in an link example ...<li> <a href="#link"> <img ...> </a> </li> ..... Now I have the css border rules all to 0. So their is no Blue border. But in Firefox their seems to be a pink mini dashed border only when I click on the image? ...