html

How to change height of a <br>?

I have a big paragraph of text that is divided into subparagraphs with <br>'s: <p> Blah blah blah. <br/> Blah blah blah. Blah blah blah. Blah blah blah. <br/> Blah blah blah. </p> I want to widen the gap between these subparagraphs, like there is two <br>'s or something like that. I know that the right way to do this is to u...

How can I extract HTML content efficiently with Perl?

I am writing a crawler in Perl, which has to extract contents of web pages that reside on the same server. I am currently using the HTML::Extract module to do the job, but I found the module a bit slow, so I looked into its source code and found out it does not use any connection cache for LWP::UserAgent. My last resort is to grab HTML...

Extract data with regex from html

I would like to extract items from this sample html, more specificly, i would like to isolate the following ones: algp1, PRODUCTION 50733 GEN_APPL KANTOOR <table width="95%" border="1"> <tr><td colspan=3><a name="algp1"></a><img src="menu/db2inst.jpg"> <font color="#FF0000" size="+1">algp1</font> (PRODUCTION, 50733)</td></tr> <tr><...

Hiding vertical scrollbar in multi-line textbox in IE

I have a multiline textbox : <asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine" Rows="10" Width="95%" /> In ie there is a vertical scrollbar bar even if a text inside textbox doesn't occupy 10 lines. In firefox it does not happen, scroll bar appears only if text exceeds 10 lines. What can be done? ...

How to change the background color of default magento generated invoice pdf that's generated to print?

Hi, Can anyone give any idea on where the html files are located that generates the invoice pdf while trying to print it out(in admin).Also I need to modify the background color from the one as in the default one that is generated by magento. Thanks in advance. ...

highlight word in div using javascript

hi i have to implement find and replace functionality in my project. in this functionality there is one find and replace button on the top of contenteditable div. when user click on this button, popup window will open and ask for the search word when specify word and press find it will find word in that div only. and if match found it wi...

How to change color of disabled html controls in IE8 using css

I'm trying to change the color of input controls when they are disabled using the following css. input[disabled='disabled']{ color: #666; } This works in most browsers, but not IE. I'm able to change any of the other style properties such as background-color, border-color, etc... just not color. Can anyone explain this? ...

Image Border not aligning properly

I have an image, which I am trying to create a border around it, to make it look nicer. I have sliced an image, to have an image for top right, top, top left, right, left, bottom right, bottom left and bottom.. The border is all fine, except for the corners, can any body help me out here? I think Im missing some CSS. The image appears t...

Event fired on select box (html) being populated

I've been wondering if browsers fire any event when select box is dynamicaly populated? I would expect 'onchange' being fired, but that doesn't happen. ...

Is there a difference between <div /> and <div></div>?

Ran into a problem on my web page where the footer in the master page wasn't displaying correctly for one particular page. On that page, I had a <div style="clear:both" /> at the bottom. After banging my head at it for a while, I saw that all I needed to change to get the footer to show up properly was to change that line to: <div sty...

How do I adjust the width of a DropDown <select> box?

I need to adjust the width of a select HTML box without using css, is there a way? I tried size but then it's adjusting the height, and width does nothing? Is there another way? ...

css modification

I am using the following css. I want a back back ground for whole site. But if i do <body bgcolor="black" > in the body tag of html i lost some images.My css is as follows. Can anyone modify it so that i can have a black background *{ margin:0px; padding:0px; } img{border:0px} html{ height:100%; background-image:url(images/top_bg.jpg)...

Best Data Modeling and Web Site Wireframe tool for web application

Which is the best Data Modeling and Web Site Wireframe tool for web application ...

<td> tags are stripped from text when injected in MooTools Elements

I'm trying to build some JavaScript in MooTools that fetches table row markup from the server, then adds it to a table. I have an object named htmlAjax that's set as a MooTools Ajax object. The object gets the HTML from the server correctly (tested this in the Firebug console), but when I attempt to add this markup to a new element, the ...

HTML - Which form element caused submit

Hi, I'm debugging a weird problem with two simlar search forms - when user types some search criteria in a text box and hits enter, one form returns results and another just reloads. And it happens only in IE - FF treats both forms as expected. I suspect that hitting enter is triggering onclick for one of the search buttons in one case ...

How do I make an html anchor that does the ?info1=something&info2=somethingelse

This is a simple HTML question, made more embarrassing (and harder to google) since I don't know the vocabulary. I want to make a link that put additional information after the url: www.example.com/page.html?variable=yes&page=5 How do I do this with a link? I know how to do it with a form. ...

PHP 2-dimensional array -> how to convert to HTML table syntax?

Hi! I need to read a bi-dimensional array and convert the values into an HTML table. For example: $grid = array( array(0,0,0,0),array(0,0,0,0),array(0,0,0,0),array(0,0,0,0),array(0,0,0,0)); $grid[0][0]=4;$grid[0][1]=4;$grid[0][2]=4;$grid[0][3]=4; $grid[1][0]=3;$grid[1][1]=3;$grid[1][2]=5;$grid[1][3]=5; $grid[2][0]=3;$grid[2][1]=3;$grid...

window.parent is always undefined in an iframe

Hi there, I have recently ran into this strange issue, I was trying to reference parent window in an iframe, but somehow window.parent or parent are always undefined. I got around the problem by using window.top, but this question still haunts me. Why is window.parent undefined? This is a .NET web app, if it helps. Update: I would...

flex index.html template

i see that that template has some code to see if the client has the required version, and it does stuff if it has or it doesn't and there is a <object> tag inside <noscript> question: if the stuff is gonna work with the <object> tag anyway why would you need all that stuff above with the control of version if it has or not ? ...

How to remove script tags?

On my website I have tags that people can use to post on my site and mess with it. What I would like to know is how do i make it so the browser just reviews everything in a file I write too as text. I would like it so there is no html and in certian parts of my website! All of it is in ASP ...