Jump to content

socrates

Member
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Bangor, County Down, Northern Ireland (near Greece)
  • Interests
    25+ years as a professional second-hand bookseller (but the game's up now).

socrates's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Okay, thank you very much for that. I can't think why, but I completely overlooked using a list. I can style it to look exactly the same way as the existing table.
  2. Hello. I'm creating a template for my web pages and want to put simple navigation links in below the h1 heading. I can do this quite successfully with a very basic html table and some css styling. The only thing that concerns me is that I read so much about replacing html tables with css and I am wondering why a simple html table is such a no-no? To create a basic css equivalent where the column heights always remain equal seems to be quite difficult and requires more code than an html table. Here is my css for the html table: #pagenav { width:100%; margin:1em 0; } .left { width:15%; background:#000000; padding:5px; color:#ffffff; } .right { width:85%; background:#EDF4ED; padding:5px; } .right a { color:#006600; text-decoration:none; } And here is the html: <table summary="" id="pagenav"> <tr><td class="left">Source</td><td class="right"><a href="index.php">Book Title</a> (1888): John Harrison</td></tr> <tr><td class="left">Section</td><td class="right">CONTENTS</td></tr> </table> What difficulties might this cause now or in the future? Is there some sort of SEO problem with tables? Thank you!
  3. Good! That's that clarified. Thank again for your help.
  4. Thank you, Andrea. There is actually data in the tags for all my pages - title, description and keywords - I just took it out for this example. What I was really wondering is if there is some sort of standard for which meta tags should be included in the head - for example, some sites are using a language one <meta name="keywords" lang="en" content="whatever" />, but I have never included that. But I assume that I haven't missed anything critical (?). As regards HTML5 doctype, I've done a little reading on the subject and I "think" it is safe enough to use it with xhtml code, but it is all a bit of a minefield for people with little or no technical background. What I believe is the case is that you can use xhtml void(?) tags, like <br />, <hr />, <img />, OR <br>, <hr>, and <img> and both will work equally well. But I may well be wrong.
  5. Correction, this is the opening code for my pages: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <link rel="stylesheet" href="/librarycode/main.css" type="text/css" media="screen, projection" /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> </head>
  6. This is a two part question. I have a long-standing site that as it developed (under different webmasters) used various doctype declarations and code (20k+ pages and a real mess by now). Ultimately I found it necessary to learn to do the design and maintenance work myself, but I still haven't quite mastered some of the basics. One area of uncertainty for me is in the use of doctype and what meta tags should be ideally be included within the <head></head> tags that follow. Currently I am using .xhtml 1.0 strict and these are the meta tags in head: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta name="keywords" content="" /> <meta name="" /> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <link rel="stylesheet" href="/librarycode/main.css" type="text/css" media="screen, projection" /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> </head> My first question is - what are the requisite tags that should be included between <head> and </head> when creating a document - i.e., is there a good standard to follow? The second part of my question relates to the future and the use of an HTML5 doctype declaration. I have read a previous post on this subject, but I'm still not entirely clear on the issue. Can I now safely start using <!DOCTYPE html> when creating new pages whilst continuing to use the valid xhtml tags that I am used to with xhtml 1.0 strict? At this stage I would not be using any html5 that isn't currently or widely supported.
  7. I am reporting back to say that it works a treat. I switched to an unordered list and used a php include and everything came up roses. Thank you very much indeed for giving me the appropriate link to your site.
  8. Thank you very much for that. I'll give it a go now.
  9. Hello! I have a nav menu located in a footer file so that it is easily edited, rather than ever having to change the menu individually on each page. The links are all in divs of the same class. What I am trying to do is somehow make the div background black on whichever page is current, and have the link within that div display in bold. Here is the menu code: <div class="leftnav"><a href="index.htm">home</a></div> <div class="leftnav"><a href="history.htm">history</a></div> <div class="leftnav"><a href="membership.htm">membership</a></div> <div class="leftnav"><a href="artwork.htm">artwork</a></div> <div class="leftnav"><a href="gallery.htm">members' gallery</a></div> <div class="leftnav"><a href="shop.htm">club shop</a></div> <div class="leftnav"><a href="affiliates.htm">affiliated clubs</a></div> <div class="leftnav"><a href="clubs.htm">clubs</a></div> <div class="leftnav"><a href="dealers.htm">dealers</a></div> <div class="leftnav"><a href="events.htm">events</a></div> <div class="leftnav"><a href="forum.php">forum</a></div> <div class="leftnav"><a href="email.htm">contact</a></div> So how would I do that if, say, history.htm was the current page? Thanks
  10. Post Script: Andrea, you were spot on with that solution. The host has added .htm and .html to the .htaccess file and says that should fix the problem, although obviously didn't want to risk telling me where the file is. At this stage I will take her word for it as I'm too shattered to experiment any more tonight. Tomorrow is another day! Once again thank you for all your help. I had spent hours trawling various sites trying to find the solution, so hopefully your posts will be of benefit to others.
  11. Okay. I've had a good look round the root directory and cannot see it, so I've submitted a ticket to the host to see if it can locate it for me. Once I find it I will add that line to it. I will do my best to report back on the result in case anyone else faces the same difficulty. I sincerely thank you for helping and pointing me in the right direction.
  12. Thank you for that. I can change all the page extensions to .php to TEST it on my site and it will work fine, but I need to find a way to include the header and footer as separate files in pages with the .htm extension. The site I am redesigning was built using .htm pages and I want to check that I can set everything up to work with that extension. I daren't change the page extension on the actual site being redesigned otherwise links into it from other sites will become defunct. I hope that makes sense?
  13. Thank you very much! Where do I find the .htaccess file and what line of code would I need to add?
  14. Hello, I'm new and apologize if I have posted in the wrong place. I have a site on which I use .php pages with php includes for the header and footer. I am redesigning a site for someone else and testing it on my own site. The site that I am redesigning uses the .htm extension for pages. So far I have been unable to include a header or footer on the .htm pages that I've uploaded to my site. The 'includes' fail to load. If I change the index page extension to index.php and use a php include then all goes well. The footer.htm file is in the same directory as the index.htm file and I have been using <!--#include file="footer.htm"--> as the include code. I've tried changing the extensions to .html and .shtml, but to no avail. Has anyone any idea why I can't get it to work? I'm probably making a basic error as I have limited knowledge of website design. Thanks!
×
×
  • Create New...