-
Posts
2,568 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by jlhaslip
-
-
img { margin-left:auto; margin-right:auto; text-align:center; padding:0;}The text-align is for some older non-standard compliant Browser to recognize the attempt to centre the picture. These older Browsers don't recognize the margin:auto. It works on Images, too.
-
I would use <b> and <i> for Bold and Italics, leaving <strong> and <em> to be used for other uses, like maybe when I wanted to make a piece of text special besides Bold or Italics. Perhaps a different colour or line height or various other text formatting.strong and em can be defined inside your css for the page. The default for them in most Browsers is bold and italics, but they don't need to stay that way.
-
xactly what real_illusions says
-
Save it as a php file. Make certain that the server is running and open the file in the Browser using an URL similar to above.Good Luck.
-
The most common Forum Softwares are written using php as a means to add and retreive data from a Database, typically Mysql. I suppose that in order to write a Forum, you might need to learn some php and mysql.Also, might not hurt to post the course project requirements here so we could understand what you will be working against.
-
The file needs to be viewed through a Browser and there needs to be a php parser to handle the php requests. If you have a version of php installed on your machine, make sure it is running and have the browser set up to parse the page as a php page, not an html page.
-
IE6 on my box looks the same as FF and is without any 'flickering' when I scroll.
-
div {margin-left: auto;margin-right:auto;}
Or some Browsers need this:
div {margin-left: auto;margin-right:auto;text-align:center;}
-
You are correct. An HTML file does not "require" a DTD, but in order to have the Browsers play well with the html code, it is very highly reccomended that you use a DTD in order to avoid the Browser using "quirks" mode when it renders your page. A correct DTD will standardize the rule the Browser uses. A faulty DTD, or lacking a DTD, lets the Browser define its own rules about the rendering and you will lose any consistency between pages. In short, use any DTD you wish, but code to the DTD you have selected.As for javascript, there is not any single DTD which javascript requires, but the more demanding the DTD, the less likely that the html validators will approve of the code. The best way to "validate" an html file using javascript is to seperate the javscript into a seperate external file.You don't need one. The only thing that needs a DOCTYPE (To my knowledge) is XHTML. You can use one for HTML but it isn't required. -
I don't have a copy of IE7 on this machine, but try this code and let me know if it works.
<!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"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title><style type="text/css"><!--body { width: 1000px; background-color:#CCCCCC; margin:0; padding:0;}#container {}#container .column { position: relative; float: left;}#left { float:left; border-style: solid; border-width: 2px; border-right-width: 0px; border-color: #333333;}#right { float:right; border-style: solid; border-width: 2px; border-left-width: 0px; border-color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; color:#333333; text-align:center;}#center { width:600px; border-style: solid; border-width: 2px; border-color: #333333;}#footer { clear: both;}.style4 { font-size: x-large;}.style6 { font-size: xx-large; color: #0000FF;}.style7 { color: #FFFF33; font-size: x-large;}--></style></head><body><div id="header"> <div align="center"> <p class="style6">.......Header.......</p> <p class="style7" align="left">Second header........................................................................................ </p> <p>hellohow are you today, im very well thankyou. WHat are you upto tonight? Idont know really , not much i suppose, why? Well i was wondering if youwould like to go for a drink at the new pub that just opened down theroad. Really, that sounds interestion, i may come actually. </p> </div></div><div id="container"> <div id="left" class="column"> <div align="center"> <p class="style4" align="right"> <img src="Untitled%20Document_files/left%2520side%2520template.jpg" alt="left" name="leftad" id="leftad" style="background-color: rgb(51, 51, 51);" height="400" width="160"></p> </div> </div> <div id="center" class="column"> <div align="center"> <p>Centre</p> <p> </p> <p> </p> <p>Main section</p> <p> </p> <p>blah de blah etc... </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </div> </div> <div id="right" class="column"> <p class="style4">Archives</p> <p>January 2007</p> <p>December 2006</p> <p>November 2006</p> <p>October 2006</p> <p>September 2006</p> <p><img src="Untitled%20Document_files/Right%2520side%2520template.jpg" alt="main" height="240" width="120"> </p> </div></div><div id="footer"> <div align="center"> <p> </p> <p>Footer</p> </div></div></body></html>
I have combined the html and css into one file for ease of editting and posting here.
-
Hosting...
in PHP
http://www.trap17.comRequires posting on their Forum for account approval, but offers full cpanel services. -
Better give the code for the background image as well, since that is the issue which started this topic..
-
From the information you provide, I would think that this is all that you should have in the css file:
body {background-image:url('parishmagbackground.gif');background-color: yellow;}
The html, head, style and body tags are for the html file only, and don't belong in the css file.
-
And the code is where???I am guessing that there is a Header or something being sent to the browser and the parser is complaining that the headers have already been sent. NOTHING can be sent before the headers, not even a blank space.Post your code and let us have a look.
-
http://w3schools.invisionzone.com/index.ph...ost&p=51972Visit this link and read the whole thing .
-
First thing to do is add a valid Document Type Declaration which forces the html page to be rendered in Standards Compliant Mode. With no DTD, the page is in Quirks Mode which is why the two Browsers are so different. The DTD won't fix everything, but it will be easier to fix if the page is in Standards Compliant Mode.
-
Here is a piece of code which reads information from a text data file and then echos it back out using the modulus (%) function to determine if the class = hi-lite is needed to change the background colour of the table row.
<table> <tr class="hi_lite"> <th>Date and Time</th> <th>Sender</th> <th>Email</th> <th>Message</th><?phpif ($show_IP){echo '<th>IP Address</th>'; };echo '</tr>';$row=0;while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { if ($row % 2) { $data_string .= '<tr class="hi_lite"> '; } else { $data_string .= '<tr> '; } if ($show_IP){$num = count($data); } else {$num = (count($data) - 1 ); }; for ($c=0; $c < $num; $c++) { $data_string .= '<td> ' . $data[$c] . " </td>"; }; $data_string .= '<tr> ' . "\r\n\t"; $row++; }; print $data_string; $data_string = "";fclose($handle);?></table>
-
We aren't?
-
<< editted out my reply >> didn't work when I tested it.I would suggest that you look at using straight div's and css for the site. It would be simple to do.
-
Removing PHP5
in PHP
For a simple one-click installer of Apache, Mysql, php, perl, a file transfer server, mail server, phpadmin, and more... Download and install an xampp set-up.http://www.apachefriends.org/en/xampp.html
-
-
This is what works for me...
AddType application/x-httpd-php .html .htm
-
Oh yes you can.I realized that with css I can't show the same images (menu images e.t.c.) in every page. -
Lose the position:absolute and negative margins. Handle the next set of div's as per above. Float one left, the other one right and centre the middle one.
<map> web page
in HTML/XHTML
Posted
Yes, you are correct. Using an Image-map, you create 'hot-spots' which, when clicked, takes the user to the linked page.Biggest trouble is there is little, if any, content for the web Bots to index, so it won't boost your google page rank very much since images don't index very well.