HighDots Forums  

need a tag

alt.html.tags alt.html.tags


Discuss need a tag in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Justin
 
Posts: n/a

Default need a tag - 05-03-2005 , 07:44 AM






Hi I`m new to web design so take it easy on me.
I am working on my personal website listed in my sig below.
My problem is I have a 3 column layout, left column navigation, center main
content, right column is site feed logos, contact webmaster, page
validation logo`s.
My problem is with the left and right columns in IE. I use a PHP include
for the content of the left and right columns but to make the pages valid I
used <object> around the content, which worked fine in Firefox but now IE.

What tag should I use for this PHP include (mainly a list of links) to
a: work in both IE and Firefox
b: validate.

At the moment I have no tag around the page that is called . it works in
both IE and Firefox but isn't valid. (according to w3c).

Thanks in advance far any help.
--
..:*Justin*:. http://www.wired2blow.me.uk
These really aren't my opinions. I just fed them and they followed me home.

Reply With Quote
  #2  
Old   
Gazza
 
Posts: n/a

Default Re: need a tag - 05-03-2005 , 07:59 AM








Justin mumbled the following on 03/05/2005 13:44:
Quote:
Hi I`m new to web design so take it easy on me.
I am working on my personal website listed in my sig below.
My problem is I have a 3 column layout, left column navigation, center main
content, right column is site feed logos, contact webmaster, page
validation logo`s.
My problem is with the left and right columns in IE. I use a PHP include
for the content of the left and right columns but to make the pages valid I
used <object> around the content, which worked fine in Firefox but now IE.

What tag should I use for this PHP include (mainly a list of links) to
a: work in both IE and Firefox
b: validate.
Not sure that's quite the question you mean.
As long as the included page is valid HTML when it's inserted into the
main page, then it's fine. You don't need <object> in there at all.
Simply include with:
<?php
include 'left.php';
?>
....though if your host has the same openbase_dir restrictions as mine,
you'll need:
<?php
include $_SERVER['DOCUMENT_ROOT'].'/left.php';
?>

Quote:
At the moment I have no tag around the page that is called . it works in
both IE and Firefox but isn't valid. (according to w3c).
Then follow the instructions at the validation site as to what's wrong,
and learn how to fix it...

Example:

<div id="leftcontent"><br/>
<p align="center">
<p align="center"><a
href="http://1and1.co.uk/xml/init/?k_id=7174813" target="_blank">

</a></p>
<ul ><li><p align="left"><a href="../index.php">Home.</a></p></li>
<li><p align="left"><a href="../me.php">Me.</a></p></li>
<li><p align="left"><a href="../blog.php">My Blogger Blog.</a></p></li>

<li><p align="left"><a href="../fblog.php">My Flickr Photo Blog</a></p></li>
<li><p align="left"><a href="../boinc.php">Boinc.</a></p></li>
<li><p align="left"><a href="../html.php">HTML and Web.</a></p></li>
<li><p align="left"><a href="../animation.php">Animation.</a></p></li></ul>
</p>
</div>

....can be cut down to...

<div id="leftcontent">
<ul id="leftnav">
<li><a href="/">Home.</a></li>
<li><a href="/me.php">Me.</a></li>
<li><a href="/blog.php">My Blogger Blog.</a></li>
<li><a href="/fblog.php">My Flickr Photo Blog</a></li>
<li><a href="/boinc.php">Boinc.</a></li>
<li><a href="/html.php">HTML and Web.</a></li>
<li><a href="/animation.php">Animation.</a></li>
</ul>
</div>

....and provides sufficient hooks to hang your CSS styling on.
--
Gazza
Mobile Number Network Checker - http://mnnc.net/
Creative writing & Poems - http://garyjones.co.uk/
Leovanna Leonbergers - http://leovanna.co.uk/


Reply With Quote
  #3  
Old   
Justin
 
Posts: n/a

Default Re: need a tag - 05-03-2005 , 09:08 AM



Previously, Gazza bashed *something* on the keyboard to form:

Quote:
Justin mumbled the following on 03/05/2005 13:44:
Hi I`m new to web design so take it easy on me.
I am working on my personal website listed in my sig below.
My problem is I have a 3 column layout, left column navigation, center main
content, right column is site feed logos, contact webmaster, page
validation logo`s.
My problem is with the left and right columns in IE. I use a PHP include
for the content of the left and right columns but to make the pages valid I
used <object> around the content, which worked fine in Firefox but now IE.

What tag should I use for this PHP include (mainly a list of links) to
a: work in both IE and Firefox
b: validate.

Not sure that's quite the question you mean.
As long as the included page is valid HTML when it's inserted into the
main page, then it's fine. You don't need <object> in there at all.
Simply include with:
?php
include 'left.php';
?
...though if your host has the same openbase_dir restrictions as mine,
you'll need:
?php
include $_SERVER['DOCUMENT_ROOT'].'/left.php';
?

At the moment I have no tag around the page that is called . it works in
both IE and Firefox but isn't valid. (according to w3c).

Then follow the instructions at the validation site as to what's wrong,
and learn how to fix it...

Example:

div id="leftcontent"><br/
p align="center"
p align="center"><a
href="http://1and1.co.uk/xml/init/?k_id=7174813" target="_blank"

/a></p
ul ><li><p align="left"><a href="../index.php">Home.</a></p></li
li><p align="left"><a href="../me.php">Me.</a></p></li
li><p align="left"><a href="../blog.php">My Blogger Blog.</a></p></li

li><p align="left"><a href="../fblog.php">My Flickr Photo Blog</a></p></li
li><p align="left"><a href="../boinc.php">Boinc.</a></p></li
li><p align="left"><a href="../html.php">HTML and Web.</a></p></li
li><p align="left"><a href="../animation.php">Animation.</a></p></li></ul
/p
/div

...can be cut down to...

div id="leftcontent"
ul id="leftnav"
li><a href="/">Home.</a></li
li><a href="/me.php">Me.</a></li
li><a href="/blog.php">My Blogger Blog.</a></li
li><a href="/fblog.php">My Flickr Photo Blog</a></li
li><a href="/boinc.php">Boinc.</a></li
li><a href="/html.php">HTML and Web.</a></li
li><a href="/animation.php">Animation.</a></li
/ul
/div

...and provides sufficient hooks to hang your CSS styling on.
Thanks for the reply Gazza. Had just worked out I was calling the <?php
inside a <p> tag which then included more <p> tags that's was why it wasn't
valid.
Just going through changing the rest now.
<?php
include 'filename.php';
?>
Works on most thing except carp news feed agg for some reason? strange!
Anyways thanks again ...
--
..:*Justin*:. http://www.wired2blow.me.uk
I started out with nothing & still have most of it left.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.