html

controlling height using CSS

Im developing a website and in my page, after every HTML elements ends, their is an extra vertical height as I scroll down. It makes my page look bad. I want the scrolling to go as far as the last div I've written. Is there something I can do to fix it?? Edit: Here's the link http://pebam.info/projects/careermanipur.com/ I tried checki...

padding-top without float:left?

ul.menu_middle_inner li { display:inline; list-style:none outside none; padding:0 10px; } not sure if things are clear enough .. but for this piece of code, how do i use padding-top for this class?? unless i use float:left, padding-top:5px(say) doesnt work at all... I don want to use float:left..... hope i m ...

HTML: li and a href

So i have styled my ul li, it comes in a dropdown box and when you mark over each li it a:hover with purple. Now in each li there´s a name. I want to make it all a link, so when you click anywhere in the marked li you go to the link. Right now, when you click somewhere in the li nothing happens, only if you click on the name IN the li.....

Update text of DIV with input value

I'm trying to update the text of a div which has several input buttons. When an input button gets clicked, the value of the button should be passed to the div and replace the text in the div. It's basically a drop down menu which gets closed when the user clicks on an option. For obvious reasons I'd like the name of the button to replac...

HTML: Making a link, submit in form?

I really want to have a link, such as, "Save" that act the same way as a input type submit button? I never figured out how to do this, is it even possible? How? ...

Have Elements at both top and bottom of <td>

I'm having trouble getting a td to have some text at its top and an image button on its bottom. Here is code similar what I have now: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head></head> <body> <table border="1"> <tr> <td valign="top" styl...

Stopping VBScript executing when page loads

I have a form that submits to a different page to the one it is on. I want to catch the onsubmit for the form and perfom some VBScript code. Am I right in thinking like with Java code in a JSP, everything in <% %> will be evaluated before the html is rendered? Here is a brief overview of my problem: <form id="frm1" method="post" actio...

facebook style navbar

Here is the navbar in my rails app. The problem is I am not sure if this wil work cross browser because I am adjusting the padding of the anchor tags to get the required height. THe other issue is the search form is inside this navbar and it's not vertically centered on inside it. I basically want a facebook style navbar that has a few...

ASP.Net MVC - Displaying text with newlines in

I have some text, stored in a table. I'm using asp.net mvc to display this. One of my views, has the following: <%=(Model.QuestionBody.Replace("\r\n", "<br/>").Replace ("\r", "<br/>")) %> Like this, it displays correctly However, if I omit the .Replace, it displays all on one line. The same data displayed in a TextBox however, displ...

Using LINQ to XML to traverse an HTML table

So, I can easily use LINQ to XML to traverse a properly set-up XML document. But I'm having some issues figuring out how to apply it to an HTML table. Here is the setup: <table class='inner' width='100%'> <tr> <th> Area </th> <th> Date </th> <th> ID ...

CSS: Padding issue. Need help please

Hi I'm experiencing a strange CSS spacing issue in Chrome (but not in Firefox and/or IE) My site is: http://tinyurl.com/33oxwg The vertical spacing in Firefox between the "Real Estate Search" (H2 tag) and the form input field for "San Francisco, CA" (#city-field input tag) is perfect, but in Chrome, Chrome is applying more/extra verti...

Replacing selected HTML text in jQuery

I have this code for replacing selected text: (it putts "1" and "2" before and after selected text): var content=$("#text").html(); if (window.getSelection) { // not IE case var selObj = window.getSelection(); var selRange = selObj.getRangeAt(0); content2 = content.substring(0,selRange.startOffset) + "1" + content.substring(selRan...

sphinx, restructuredtext: set color for a single word

Hi, Is there a way to set the color of single words (or characters) in sphinx? I'm pretty sure there should be some markup tag, like HTML's font tag. Thanks, Adam ...

How to show text/info in certain place on textover using javascript

http://www.baelkopat.com/GECCo/goingGreenTest.html what I have so far.What I need to learn is to show the additional text when user mouseOver the link. i.e. when user mouseOver on "Activity Guide(PDF)" the "Download and print...." shows up... I have pretty good experience with actionscrip not that very new to javascript... I was wonde wh...

extract all links from a HTML page, exclude links from a specific table

Hi experts, I'm pretty new to Perl/HTML. Here is what I'm trying to do with WWW::Mechanize and HTML::TreeBuilder: For each chemical element page on Wikipedia, I need to extract all hyperlinks that point to the other chemical elements' pages on wiki and print each unique pair in this format: Atomic_Number1 (Chemical Element Title1) -> ...

Vertical spacing around UL tag

One of the unintended differences between a <div> tag and a <ol> or <ul> tag is that the list tags add 20px of padding at the top and bottom of the block to whatever is specified in the style properties. In fact, using a <div><li></li><li></li></div> gives exactly the desired results. Although this workaround is apparently illegal- (qu...

textboxes alignment messing up when required validators fire?

I have table with couple of textboxes in it. In those 2 fields I have required fields. When validators fire alignment is changing. Before the validators fire, textboxes aligntment is good. Pic1 for after validator fires. Pic2 for before validator fires. Here is the HTML. <table class="Borderblue" id="Table26" cellspacing="3" ali...

CSS/HTML white space

The page isn't long enough (I'm on a 24" screen), so there is a white space at the bottom. Is there anyway to set some sort of min-height on the page? Or any solution? Never had to deal with this before. ...

Is there a free tool for rendering a webpage to a PNG with a transparent background?

Say I have a very simple html page, containing a single line of text. I'm looking for a tool that would take that line of text, and superimpose it on a transparent PNG background. That logic would be applied to ALL elements on the page: if no background is specified, and the background of parent elements doesn't leak through, then a back...

Are there spam concerns when using the address tag?

I know that spam bots scour web sites and harvest emails, however I wasn't sure about the extent of information that they search for (for instance, names, physical addresses, phone numbers, etc.) In essence, my question boils down to: "Do spam bots search web pages for physical addresses, and I am helping them through the use of the <a...