How can I make it stay on the same line? I want "How ya doin?" to be on the same line as the menu.
<div class="header">
<b>How ya doin?</b>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Registration</a></li>
<li><a href="#">Terms of Use</a></li>
<li><a href="#">Support</a></li>
</ul>
</div>
THe CSS:
* { margin: 0...
Hello All,
I have a PHP script A which displays data from database.
I have another another script B which gets the content of script A .But I need the content after script A is executed . But this is not happending .
// Script A
enter code here
<?php
session_start();
if(!isset($_SESSION['username']))
{
...
Hi folks!
I'm trying to show an AJAX loader gif while an asynchronous POST request is performed. Unfortunatelly this works not in Interet Explorer! The Gif is shown, but the request process seems to stop respectivly the changed webcontent will not be shown. On FF, Opera, Safari everything is fine! Any ideas?
http_request.onreadystatech...
I am working on a CMS that generates CSS "style='xyz'" statements from user input.
The user input will be validated but as an additional safeguard, I want to check the validity of the values on generation of the CSS code.
If an invalid value is encountered - e.g. a relative width ("50%") where only absolute values are allowed due to lay...
On a website I am maintaining for a radio station they have a page that displays news articles. Right now the news is posted in an html page which is then read by a php page which includes all the navigation. I have been asked to make this into and RSS feed. How do I do this? I know how to make the XML file but the person who edits the n...
If I want to insert the output of a script into an HTML file using server side includes, is it better to use
<!--#include virtual="/cgi-bin/myscript.py" -->
or
<!--#exec cmd="python /cgi-bin/myscript.py" -->
?
...
I want both labels and textbox appear on same line ("Search for products:" label is above "search" label, i want them to be on the same line), the difference is slight but it exists, I want them to be precise.
online version: link
Markup:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
...
We deal with alot of UGC (1m+/mo) and sometimes our users will input large strings with no spaces which causes web browsers to display content in a strange manner, breaking UI here and there.
I am trying to find a way to intelligently and quickly process text up to 50k and insert tags where appropriate.
I have already built this, but ...
Hi, I have a weird problem with HTML select box height in Firefox 2, here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>FIREFOX 2 SELECT BOX HEIGHT ISSUE</titl...
We are in the process of rewriting some of our websites and trying to make the most use of browser caching for our users. We have created a group of shared css files that we plan to use as a "corporate branding" across multiple sites that we've created.
The reason for this, we know that browsers will cache a CSS file for a determined le...
I have a WebBrowser control which I populate with HTML then display. The HTML contains a few links pointing to anchors in the same page...
<html>
<head></head>
<body>
<a href="#myTarget">jump</a>
<!-- further down page -->
<a name="myTarget"><h2>A heading</h2></a>
</body>
</html>
If I run my app v...
The images for my css header class load correctly in Chrome and FF, but not in IE8 or 7. Anyone know as to what I may be missing?
Here is the css class code:
.TBox {
color:#333333;
font-size:11px;
background: url("../../Images/box_bottom_right.gif") no-repeat bottom right;
margin: 0;
padding:0;
font-family:Verda...
Can someone please tell me why this will not validate strict?
<div>
<form method="post" action="/search/keywords" />
<input type="text" id="keyword" name="keyword" />
<input type="image" src="/images/go.gif" alt="Search" />
</div>
The problem is that I have two <form>s in my page and when I use the "/" to close the for...
Hi all - I'm new to jquery and trying to accomplish something. My HTML looks like:
<li>
<div class="yes"><input type="radio" name="Group 1"></div>
<div class="no"><input type="radio" name="Group 1"></div>
Group 1
<ul>
<li style="padding-left:25px">
<div class="yes"><input type="radio" name="Item 1"></div>
<div...
hi
i tried to send html email but i guess i am doing sth wrong
here is my code for body part
$body .= "<table style=width: 800px; height: 600px;background-image: url('http://www.myserver.net/image/temp1.jpg');background-repeat:no-repeat><tr><td><table style=width: 100%>";
$body .= "<tr><td align=center style=wid...
I'm trying to extract text from arbitrary html pages. Some of the pages (which I have no control over) have malformed html or scripts which make this difficult. Also I'm on a shared hosting environment, so I can install any python lib, but I can't just install anything I want on the server.
pyparsing and html2text.py also did not seem ...
UPDATE: Turns out that Bart's answer is the correct one. 4*64+8*1 = 264px wide div to contain the other divs and their 1px borders gives exactly the effect I wanted. I modified my sample code to contain his answer. Thanks Bart.
I'm struggling, again, with CSS. This sample shows 1,2,3,4 at the size I want them using a table. When I ...
Hi,
I'm new at web development, so to make sure I'm writing good code I've been using w3.org validation tools. I'm currently working on a project where I generate a lot of my html with php functions, and I'd like to validate the html, but w3.org doesn't support that. The only way I've found to do it is to render my code, view source and...
I have a hyperlink in display: block mode and it's placed in a table cell (td). The hyperlink text is showing at the top of the cell. Want it in the middle for all common browsers.
I am using a hover effect where the background color of the cell changes. The text position looks odd.
...
do elements before they are part of the dom have the width and height set properly? ie if I create a div containing markup can I measure its intended width and height without appending it to the dom?
...