html

HTML processing in Java: Convert HTML to other formats

OK, there are many HTML/XML parsers for Java. What I want to do is a bit more than just knowing how to parse it. I want to filter the content and have it in suitable form. More precisely, I want to keep only the text and images. However, I want to preserve some of the text formatting, too, like: italic, bold, alignment, etc. All this i...

Change dimensions of body with JavaScript

How can I change the dimensions (width, height) of the body element after the content has been loaded? Restrictions: Only targeting WebKit browsers Can't use frameworks like JQuery Can't make changes to the original HTML file; only execute JavaScript after the content has been loaded. ...

how can we make a div take width according to its content automatically

I want to create an effect like that of fieldset and label. When the headings change along the side, the width that the white background of the heading remains the same. If I can make the heading or div element to take the width enough to fit its content, it will give the proper effect. If there is any other solution please let me...

.htaccess mod_rewrite

hello i am trying to make it so that when you visit my site you don't have to put .php at the end this is what i am using but it isn't working (godaddy hosting) Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php i just added the "Options +Follo...

coding a search bar with icon inside it

i am trying to code the folowing layout. i am messed up the code and not sure whats the best way to do it. <div class="search-wrapper"> <form action="search.php" method="get" name="search"> <div class="search-box"><img class="search-icon" src="images/search-icon.png" width="21" height="18" alt="search icon" /> ...

Jquery load html only work with a timedelay set.

I am trying to load HTML via JQuery, using the .load function. This is working as expected, but I want to process the loaded HTML afterwards. This only works when I either a) set a breakpoint BEFORE said manipulation is done. b) set an alert BEFORE said manipulation is done. Of course I'd like this to work without having to set breakp...

Is there a way to make a clone in CSS?

For example I have this css class: .class{ background:#FFF; border:1px solid #ccc } And I have this HTML structure: <ul class="list"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> And I would like to use the .class on the list. li elements without adding the class="class" to the <li>'s or rewriting the whole...

Developing a User Dashboard

Hey Guys, Due to your extraordinary support, i was able to build a login system with sessions. Now i want to create a a user dashboard after the user has verified himself. I am good at HTMl, CSS and Javascript and wanted to know if I should go ahead and create the dashboard using them. Or should I use PHP (i am not too good at it). A...

tough time battling css. can't get background-color below background image

I've been doing lot of trial and error but now need some help. Page I'm working on: link Questions: Sliding tab content: When I hover the mouse over the three tabs, the div that moves along with the mouse is not getting evenly balanced between the three tab contents. There is a plugin that I used, tabbedcontentslider. I think it is...

Ajax auto form submit

Hi, Does anyone know how to automatically submit a form via AJAX, without, having to explicitly click on the submit button. For example, say I have the following form: <form id="form1" method="post" action="" name="form1"> Rows: <input type="text" name="rows" id="rows" /> <br/ > Columns<input type="text" name="columns" id="columns"> ...

possible problems when re-locating ad banner in dom by javascript?

Hello :) I am designing a layout that looks like: == header == == ad banner == == content == == footer == however the source code order is: == content == == header == == footer == == ad banner == the idea and goal of all that is load ad code in the very end so that the page doesnt get slowed down by external loaded javascripts ...

How to make an HTML frame unmovable?

How can I modify this frames so that users can not move those frames? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"&gt; <html> <head> <title></title> </head> <frameset border="1" rows="100, 200" > <frame src="page1.html"> <frameset border="1" cols="20%, 80%" > ...

Browser scroll bar appearing despite dimensions of content.

Hello Everyone, Bear with me as I try to describe my problem. I have auto-aligned the content of a web page so that it appears in the center using the following code: /* Universal Rules -------------------------------------------------- */ body { margin: 0; padding: 0; background: #fff; color: #333; /* font sizing in ems, baby. if...

the blank space below the <body> tag & script tag and link tag goes under body tag from head tag

hey guys, i wrote a php app using php+smarty. when i view web source code in firebug, i find that link tag and script tag get under the body tag. but i should be under head tag. and there are some space below body tag. and there's blank space on my top of my web page. so , what's the problem? ...

Can not reach to the internal links!!!

Good days, I have a webpage. I never had a problem like this before. When I wanted to give a link to internal file on the path like public_html/slides/new.ppt. I created a link like this to reach this : <a href="http://mydomain.com/slides/new.ppt"&gt;Link&lt;/a&gt; But, suddenly I am getting object not found errors. Although the path ...

Displaying HTML codes - &frac14; and &rdquo;

I am trying to display the real value of &frac14; and &rdquo;, but the browser is displaying it as ? (question mark) at a area where AJAX is enabled. While at a different browser locations it displays ¼”. I want to display 1" but it getting displayed as 1â€. Please advise. ...

How to display an image full size

<a href=FullSize.jpg"><img alt="thumb" src="thumb.jpg"></a> When the above thumb is clicked the browser will display FullSize.jpg sized to fit the client window of the browser and when the cursor moves over it a '+' will appear to signify that clicking the image will display it full size. What I want to do is display the image full siz...

Why Won't Tabindex Work with Firefox?

I'm trying to use the tabindex text input attribute to allow users to tab between fields on this page: https://seatgeek.com/login/. This works perfectly in all browsers (event IE!) except for Firefox. I'm using Firefox 3.6.10. ...

Table putting words with spaces on different lines

I am trying to make a table in HTML. When I resize the window down to be narrow and the window tries to squash everything to fit inside the window even though it's narrow, it puts the contents of a cell on different lines. I don't want this to happen. E.g.: home about contact us when you narrow down the browser window: home ...

div width not stretching 100% on lower resolutions

I'm working on a website for a client, and I'm not excellent at css... still in the process of learning a lot about divs. I made a div that is supposed to stretch 100% of the page, and it works, unless a user is browsing from a lower resolution (1024 x 768 for example) and has to scroll horizontally, the div will then only extend to the ...