html

TinyMCE HTML code being changed

I am using TinyMCE, version 3.0.8, and I have a problem which I don't know how to solve. I am new to TinyMCE and so, I say I'm sorry in advance if my question is too stupid but I haven't found an answer for it anywhere. I have one client which wanted to have a different behaviour when using the HTML editor from tinymce. This client woul...

Using a logo image in a Wordpress blog

Hello, In the code below, I am using an image (images/newlogo.PNG) for a logo. I am trying to add the same logo to a Wordpress blog, but Wordpress can't seem to find the logo. Any idea where I should put the image so that Wordpress can find it? Thanks in advance, John <div class="newlogo"> <a href="index.php"> <img src=...

How to implement reuseable HTML Navigation menus?

I'm sure this topic comes up all the time, but I can't seem to fine a concise answer. I've got a vertical menu bar that I want to reuse in our web pages (>20) for the site. The Menu bar is coded in html (UL, LI, A), uses Div tags and CSS to achieve the desired effects. We want to find the simplest approach to reusing the menu bar in all...

Reading Iframe Content in Iframe Load

Hi, I just wanna learn how to read Iframe content in onLoad event of iframe and write it's content to the main page ? Thanks.. ...

don't send the cookies in iframe

dentro de un archivo HTA tengo un iframe y no esta enviando las cookies, hay alguna forma de que las envie correctamente. I've an iframe inside of a HTA file, when I call the inner page cookies aren't send to the server. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"&gt;...

How to set viewport meta for iPhone that handles rotation properly?

So I've been using: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/> to get my HTML content to display nicely on the iPhone. It works great until the user rotates the device into landscape mode, where the display remains constrained to 320px. Is there a simple way to specify a viewport that...

What is the best method for supporting screen sizes in a Web app?

What is the best approach for defining page width of a web app? Most of our users have 19" monitors, but many run the apps from 14" laptops, and some have 24" monitors (assume it's a max resolution). From what I know, the two most common methods are: using fixed width pages or dynamic (max) width (100%). There are problems with either a...

Formatting list items to alphabetize vertically and then horizontally when floated left

Assuming I have the following html: <ul id="a"> <li>a</li> <li>b</li> <li>c</li> <li>d</li> </ul> And the following CSS: ul#a {width:20px;} ul#a li {float:left; width:10px;} The current output is: a b c d The output I'm going for is: a c b d Is there any way to do this without breaking up the li's into...

CSS Optimization: Element ID vs. Class

With MVC and jQuery I am making significantly more use of CSS. A question that came to mind is what is the best approach for using Element IDs vs. Classes. If I use Element IDs the selectors in jQuery are shorter. For example: #imageTag... $('#imageTag') #searchTag... $('#searchTag') As an alternative it could be structured with a par...

How to pass data from Ajax popup to parent page?

I currently have an Ajax pop up window displayed from the main page of my application. In this pop up I have select list and I want to pass the selected value from the pop up back to the main page when the user closes the pop up window. I feel there is an elementary way to do this, but I can't seem to figure it out. ...

How can I automatically validate that I have an HTML Id on every element?

The testers on my project want a unique HTML ID on every page element to make their automated testing easier. It's hard for me to remember to do this, because I don't need the IDs for development. How can I ensure that I don't forget? I thought maybe something like Checkstyle could tell me, or even the "inspections" in IntelliJ - but ...

default a:hover overriding ones with classes ie6

I have a default a:hover style as follows: a:hover { color: black; font-size: 8pt } However when trying to apply a class such as: a.myclass:link { font-size: 14px } a.myclass:hover { color: red } without the font-size, then it changes font-size back to 8pt. Now this seems like how it should work however it doesn't happen in ie7, f...

Need html text shown as a link to work with an iframe

I have a page that contains an iframe element. I want to have some text on the main page when clicked to change the iframe source. I can do that with an "a href" tag but the main page resets to the top instead of where the user was last on the page vertically. If I use an input type=button element, then it works just fine without rese...

how to make 100% width for 2 div

I have 2 div in on page <div id="main"></div> <div id="panel"></div> and using float to make main at left, and panel at right #photos-main { float: left; width: 800px; position: relative; } #panel { float: left; margin-left: 830px; position: absolute; } I want to let panel fill with the left page space, which css should I use? ...

Web Page Design Get Distorted in Desktop PC Monitor

I am building my web application on my laptop but when I navigate the page on my desktop pc the layout of the div are distorted. I think the solution is giving percentage instead of absolute numbers like 240px to height and width of divs. What do you think ? Do you have another recommendations ? Thanks in advance. What I've done is ...

What does font size -2 mean here?

I see this from source code of a web site: <font size="-2">@2009 </font> What does it mean when size is negative? ...

Learning HTML: "Incorrect" but simple, or "Correct" and complicated?

Question asked a couple minutes ago gave me this idea... If you were to teach someone HTML today, it would be significantly more difficult than a couple years ago. For example, the <font> tag is simple, straightforward, and easy to understand. But it's now slated for the chopping block in future versions of HTML. I couldn't imagine tryi...

jsp error when using if-else with html

I have the following in my jsp page (assume that client is an object ) <% if( client == null) %> NO client <% else %> <a href='page.jsp?aid=<%=client.getID()%>'> and his name is <%=client.getName()%> thanks ...

How to clean a string by removing anything that is not a letter in PHP

lets say I have an html document how can I remove every thing from the document I want to remove the HTML tags I want to remove any special character I want to remove everything except letters and extract the text Thanks ...

Excel with Macro

Hai i want to download an excel sheet which contain Macro. But i use Php script to downlaod the excel. Is it Possible to download an excel sheet with macro in php? ...