html

div style working in Firefox but not IE8

I am creating a banner that resizes to fit the window (I got the code of a blog post) and it works fine in Firefox, but it doesn't display at all in IE8. Please help!! <html> <body> <div style=”position:relative; width:100%; height:100%; margin:0px; padding:0px; left:0px;right:0px;z-index:1”><img src="https://na6.salesforce.com/servle...

How can I make my divs stay the same size depite adding content?

So I imagine this is a pretty trivial question for most, but I am working with a grid like class of divs, and whenever I dynamically add content to one div, the whole row of remaining empty divs shifts down. There may be something that I am just not understanding about divs, but after doing some research on the web, one post said there ...

Submit form without page reloading

I have a classifieds website, and on the page where ads are showed, I am creating a "Send a tip to a friend" form... So anybody who wants can send a tip of the ad to some friends email-adress. I am guessing the form must be submitted to a php page right? <form name='tip' method='post' action='tip.php'> Tip somebody: <input name="tip_e...

Why am I not seeing anything for IE 8.0 for the following page?

http://havanasanjuan.com/ FF seems fine.I know this is something trivial. ...

HTML + Button with text and image on it.

Hello, I have a problem in creating a Button with text and image on it. <td> <button type="submit" name="report" value="Report" <?php if($tab == 'Excel') echo "id=\"tab_inactive\""; else echo "id=\"tab_active\"" ; ?>> <img src="images/report.gif" alt="Report"/>Report </button> <button type="submit" name="excel" value...

( height 100% ) plus (2-column css)

Hi! I need a 2-column interface to stretch 100% height of the page. PS: If the columns are too long, the scroll bar should appear. After this question is solved, I'll try to add a sticky footer to the interface. PPS:please, no solutions using "fake" background image I've really tried hard to find the answer by myself... Thanks if yo...

Want to display 4 images in a row, with a description below each image

I'm tring to practice table-less design, and I trying to get the following: 4 images per row, and under each image is the name of the image. So my DOM: <div id="images"> <div class="imageblock"> <div class="image"><a href=""><img src=""/></a></div> <div class="meta">some filename</div> </div> <div ...

ASP.NET-MVC Linq2Sql logic to get linked items on condition

I have a subcontract table with a company field. On the company page, I do not want the company to be able to be deleted if it is attached to an active subcontract. I am currently using the following expression to display the delete button. (Doesn't actually delete, just sets company to inactive.) <% if (item.company1.subcontracts.Co...

XSL: Parsing XML to HTML - How do I use value-of an element data as an html attribute?

<input src="LOGO.JPG" type="image" name="imagem"> I have an xml element that contains the image path that needs to be displayed in HTML after the parse. <xsl:value-of select="image"/> returns the string that is stored in the image element but how can I use it to make that string be the src atribute value in an html tag? I tried <input ...

Using jQuery to disable CSS inheritance

Is there a way to use jQuery (or generic javascript) to disable CSS inheritance on a block level? For example, if I am pulling in an external resource via javascript, say pastie.org, they will have their own CSS that my CSS overrides. I would like to place the embed code into its own container that has CSS inheritance disabled. This is ...

problem in changing the direction of jquery treemenu

hey guys , i have used the popular treemenu plugin for my project ,but the only problem i have is with direction . as you may see , it shows menus in LTR direction and icons of folder and file floating left side http://jquery.bassistance.de/treeview/demo/ question is how can i change the directio to rtl believe me , it takes me on...

Space Between Table Rows

This should be a simple problem, but I am have a tough time getting the html to display the way I want it... The problem is the space between my table rows...I don't want space between my rows. I just want my table to look like a spreadsheet with black borders. I am using a datalist and have a table in the datalist control's templates. ...

Why should I use display:table instead of table

What's the benefits of structuring my site with divs and apply the display:table property ( display:tr, display:tr). Doesn't this mean that the divs will behave exactly like tr and td elements? I know I probably shouldn’t use tables or table behavior for layout at all but I'm just curious if there's a difference and a benefit? ...

Email signature with images

Hello, I am trying to build a HTML + Images Signature in Mozilla Thunderbird. I know that this isn't the most apropriated software to create email signatures... but I can't think of another one that is free. My image is attatched to the email itself. And it displays good in some Webmail Managers like Hotmail... however... in Gmail this...

How do I delegate building to a method?

I am writing a Groovlet and would like to delegate part of the HTML builder to a method but am having trouble getting it to work. Below is what I have: def pages = [page1: html.p("page1")] html.html { p("p") pages[page1] } I am expecting the following output: <html> <p>p</p> <p>page1</p> </html> Instead what I get is the fo...

How do I add a border to a div that has the style='overflow:auto' only when the scrollbar is activated?

So I have a div that gets content dynamically, and when the content size exceeds a specified height, the overflow:auto kicks in and I get a scroll bar, but not before the content passes that height boundary. Now I am supposed to add a 1px border around the whole div only when the height is exceeded, and the scrollbar shows up...does an...

Why does this PHP script interfere with my CSS layout?

This page uses $_GET to grab an asset id and query a mysql database and return some information. If 'id' does not match anything, no results are displayed but the page looks fine. If 'id' is null an error would occur at $id = $_GET["id"] or die(mysql_error()); When this occurs, they page layout is not displayed correctly. How do I fi...

summer training

hi i wanna make a retail store software for my family retail store .... can anyone help me out with which language to use and just give me some basic ideas I'm an engineering student and have good knowledge of ASP, HTML, CSS, VBSCRIPT and have gone through java , c ,c++. please help me anyone ...

Maintain Constant Title Across Website

If I am creating a website in ASP.NET, is it possible to programmatically set the title of the page be some predefined value with some extra information tacked on? For example: Home Page Title = Site Name Links Title = Site Name: Links Stuff Title = Site Name: Stuff Basically, whatever I defined as the main title on ...

displaying multiple forms in asp.net

Hello friends, I have a page where i enter the number of members i need to add now suppose i chose 3 so on next page i have get a display like member1 enter details(name, address, phone etc) just below that again member2 enter details(name, address, phone etc) and member3 enter details(name, address, phone etc)in short the no of forms d...