html

How to effectively template recurring HTML snippets?

Hi.. i'm new to web developement and i have a problem .. and a (bad) solution : i want to navigate in my page. The pages have the same layout. The only difference is an div container. Sample code : home.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><htm...

jQuery animate() to position issue

I'm just working on my personal website, giving it a bit of a revamp. I've implemented a sort of 'accordion' menu feature, where if a menu button is clicked, the "non-clicked" buttons disappear, and then the clicked button is moved to the top of the list, where then a panel animates down in which I will be putting text content. In Fire...

Wordpress !Doctype Halting up my flash liquid layout.

Hello. I'm building wordpress blog themed in flash and I've already run into one problem. this doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; Will not let me scale my .swf to 100% width and 100% height. Width is fine, but the height is not. my c...

iPhone img tag in local html file

I have an image that is set to content and is in the root of the bundle. I have verified it is there in the simulator. When I construct HTML to display in the UIWebView, this HTML fails to show the image: Is there a relative path it should be in? Note: I use the bundle as the base path in the call to show the html. (I use MonoTouch...

I installed XAMMP on my machine, where do I have to put my HTML files to view them?

If I enter 'localhost' on my browser, I'm taken to XAMPP's welcome screen so everything is installed correctly. What folder do I have to put my html files in? Thanks. ...

jquery fadein fadeout visibility

the default fade behavior is display:none . which changes the layout of my page. how can I make it fade to visibility:none so that the page's layout stays the same ...

Is it good to add min-width, max-width, min-height, max-height always in any type of layout fixed or liquid?

Is it good to add min-width, max-width, min-height, max-height always in any type of layout fixed or liquid? ...

Persistence of checkbox data from 5-page html table display

I'm a PHP learner. I am pulling rows from a db and displaying them in a very simple HTML table. Each row begins with a checkbox. There are 20 records on each page, and there are 5 pages. Every time I go to the "next page", the values in the $cVarString below are vacated. No page-to-page persistence. If I choose 10 rows on one page ...

Disabling the toolbar?

I would like to disable the toolbar via a link in my HTML. I've tried: <a href="window.open(URL, '', 'toolbar=no,menubar=no...')">Click</a> But it is not working. Could somebody provide some direction here? I would prefer to not use Javascript. ...

matching text with data in database?

i am new to php, html and js.I am trying to make a website using php, html and js and what i want to is search. actually i have a database which is storing name of videos and their URL and i want to match entered text with name of video in db. for example if someone enters arith in search text box all names having arith word in them shou...

Print database data in html Table

I know how to print data from database on html table but i have one task that i can not understand, and i can not do it. I have a table in database and when i select those data i want them to display on html table but something like this: ...

How to change 'Timestamp'-column language in MySql?

I have a column which is a Timestamp. It records something like: 2010-02-08 12:10:22 Then I use this in php: $postdate = date( "j F", strtotime( $row['modify_date'] ) ); And it can output something like: 8 February My Q is, how can I change the date-text so it outputs the month name in another language (swedish specifically)? Ex:...

access html content through CSS ?

<div id=menu> <ul> <li class="section-title">auto-text1</li> <li class="section-title">auto-text2</li> <li class="section-title">auto-text3</li> </ul> </div> How can I give special treatment to auto-text3 through css? ...

jQuery - expand/collapse all button, Internet Explorer problems

I have a custom tree structure type display. I have Expand all and Collapse all buttons, which are hooked up with the following simple jQuery. $('#expandAll').click(function() { $("img[src='images/plus.gif']").parent().click(); }); $('#collapseAll').click(function() { $("img[src='images/mi...

Little help with this "date" function

I have this to select a date from a mysql db, and compare it to an array of month-names in swedish language. $monthnames = array("","Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"); $postdate = $monthnames[date("n", strtotime( $row['modify_date'] ))]; //Outputs something lik...

Are there tools to translate any website into the templates its framework is using???

Rails, for example, has a defined set of patterns it uses to define ids and other attributes in html, for example <input id="project[task_attributes][]" .../> is the result of something like <%= fields_for :task %> nested inside of <%= form_for :project %>. I'm sure other frameworks do the same. This means that if you went to a random ...

Making checkbox and radio labels clickable

A large number of (dare I say most?) sites do not make the labels clickable for their checkbox and radio inputs. It seems to be a huge usability gain for very little effort. Are there any compatibility/functionality/usability issues with using <label> that would discourage developers from using this tag? Edit: Even StackOverflow seems g...

How can I allow text to wrap inside a word if necessary?

I am looking for the best solution to allow text to wrap in the middle of a word if necessary. By best, I mean most browser-compatible, and will favor word breaks before it breaks inside a word. It would also help if the markup looked nicer than mine (see my answer). Edit: Note this is specifically for user-generated content. Edit 2:...

Email Div Content

I am trying to email the content of a Div. We have a booking system online and the user selects what options they want, then submit the form. It displays their information on the next page for them to print. I also want a copy of that emailed to them and us. I liked the look of Jonathon Sampson's email div using ajax script. But it does...

div not full width

I have two div's like this <div id="left"><p>.....</p><br/> <p>.....</p> </div> <div id="right"><img ..../></div> And I have css. #left { position: relative float: left; } #right { position: relative float: right; } right div doesn't float to right, because p elements in left doesn't give space for right div element, but in CSS I...