html

page-break-after with IE and FF not working as expected

I have read through a lot of the question asked here and other places and I am confused why page-breaks don't seem to work for me. I created a test html page that looks like this: <html> <head> <style type="text/css"> @media all { .page-break { } } @media print...

How to use a QGraphicsWebView?

I want to use a QGraphicWebView inside a delegate to render a QTableView cell, but I just don't know what to do with the QStyleOptionGraphicsItem parameter the paint() method requires. How to build it up / where should I retrieve it? I'm using this code as reference, so the paint() method should be something like this: def paint(self, p...

Add header to <dl>

I have a <dl> and I would like to add a header to it. My first attempt is not successful - I don't know how to get the <dt> header to span both the subsequent <dt> and <dd> elements. <style> dl.table-display{ float: left; width: 100%; margin: 1em 0; padding: 0; font-family: verdana,arial,helvetica,sans-serif; fon...

Why is this hyperlink taking the whole table cell and not just on the text ?

Facts: I'm working under Visual Studio .NET 2008 I'm using Cufon-yui.js as a font replacement tool. The link is inside of a Table (as it handle much more info) The command I use is: <asp:HyperLink ID="thisistheID" runat="server" NavigateUrl="#"> <h3 style="width:250px;">Title of the Link</h3> </asp:HyperLink> In Firefox and IE,...

CSS Heading Style Problems

I feel like the answer to this question is probably very simple, but I'm honestly struggling with this. I have a web page in which all heading will need to be blue, so I added this to my stylesheet: h1, h2, h3, h4, h5, h6 { color: blue; } However, on the same page there will be 5 different divs, in which the heading color will need t...

How can I convert an OpenOffice Writer document (.odt) to multiple HTML files with navigation?

I have an OpenOffice Writer document (.odt) with a table of contents, sections, subsections, etc. Is there a quick way to convert (export) this into multiple HTML files with a navigation sidebar, converting the sections into links? ...

Jquery: When adding submit button, it cannot be selected again.

Hello there, I would like to add a button to the current page using html()-function. This button needs to be selectable, and alert('click') when it is clicked. This seems impossible. Look at this code <script type="text/javascript"> $(document).ready(function(){ $('a').click(function(event){ $('div').html('<form method="p...

Capture iframe load complete event.

Is there a way to capture when the contents of an iframe have fully loaded from the parent page? ...

Regarding the HTML Label's "For" Property

Considering the following 2 lines of code (copied from w3schools.com > "HTML < label > for Attribute"): <label for="male">Male </label> <input type="radio" name="sex" id="male" /> I am having trouble discovering the exact purpose of the above label's "for" property. As you can see it is currently set to "male" (to match the id of ...

dynamically generated html doesn't wrap to the screen.

I cannot for the life of me figure out why this markup is not wrapping. There's nothing special about it, except that it is generated by javascript. Here's the code. Any thoughts on why it's messing up would be welcome. I can include the js if you need. but basically it reads the text in the textarea, extracts the words, and creates a l...

Fetch database information on a new page without using new documents

I'm working on a page where I've listed some entries from a database. Although, because the width of the page is too small to fit more on it (I'm one of those people that wants it to look good on all resolutions), I'm basically only going to be able to fit one row of text on the main page. So, I've thought of one simple idea - which is ...

MSXML XHTML and embedded CSS

I have an Excel workbook that is used as a starting point to generate a user-fillable form in our internal system. As an aide to the users creating these workbook, I'm trying to add a preview function, that takes that spreadsheet, does some VBA magic to generate an HTML file, and then display that in their browser. I have the basic stru...

Whats wrong with this table format in IE?

Hi, This is only happening in IE, when I place the table labeled -- middle table -- into this HTML, the alignment of the parent table gets messed up and the width="250" on the first TD gets ignored it seems. (the select box should start at 250 pixels from the left of the page, however it doesn't. remove the table labeld -- middle table ...

What does JavaScript element.style='whatever' do to the html?

Does it enclose the element within a SPAN element with the given style or does it just assign the style to the attributes of the element itself? How about when I do element.style.border='1px solid red'? Does it depend on the browser or is there a rule? ...

iframe changing main page jquery or html

i have a iframe and it is linked to pictures.html and on this page i have links but when i click the links it changes the ifame page is there anyway i can change the main page using jquery or something? ...

jQuery rounded corners with border in IE

Hi, I have a problem with my website in IE8 (6 and 7 also I guess). My main div has rounded corners. I did that with jQuery.corners - this works fine in Firefox en also IE! The problem is: in IE I don't see the (white) borders... Does someone know why? Or is it nog supported? The site is: http://77.243.237.196/~ksaatom/newsite It wou...

Image on Browse and upload file button.

I want to have image button for "browse" and "upload" I have textbox using the following code: CSS .uploadpathdiv { margin:0; height:44px; width:464px; background:url('images/img-upload.png') no-repeat bottom; } .uploadpath { background:none; border:none; width:400px; height:40px; margin:0; padding: 2px 7px 0px 7px; font-f...

How to make an NSURLRequest login NOT in plain text

Whats the best way to make this a more secure and less obvious security risk? NSString *loginIdentification = [NSString stringWithFormat:@"user=%@&pass=%@&", userNameLogin, passWordLogin]; addressVariable = [NSString stringWithFormat:@"%@/%@", url, loginIdentification]; addressVariable = [addressVariable stringByAddingPercentE...

Clone contents of node into different namespace

I've updated the title and the text of my original question after gaining more knowledge on what's really going on. The misinterpreted the symptom as whitespace not being preserved while what's really going on was that the HTML elements weren't being interpreted as HTML. I'm writing a transformation from a WADL document to HTML. I need ...

How Do I Add Colgroup Tag to ASP:Datagrid Control?

How do I add a colgroup tag to the datagrid control so that I can style each column using css? ...