dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Several problems (css, javascript...)

  1. #1
    Join Date
    Jan 2008
    Posts
    1

    Several problems (css, javascript...)

    Hello. I have recently been thrown into building a site for a friend, and I have very little experience with web design at all. I've built a site that he finds acceptable (visually), but it has loads of problems right now which I have yet to solve.

    If you are bored, I would really appreciate any help I could get.

    Here is the address:
    http://www.chanvinson.com/test.shtml

    Some problems I am having:
    1. I've used SSI to bring my navigation bar onto the page from a seperate file, but the navigation bar is of the drop-down menu variety. On some browsers (on Safari) the process works fine, but on others (IE) the drop down menus don't pull up.

    2. Just to show you what a newb I am, I have been unable to figure out how to position the content of the page in the center of the screen, and was sad to find that there is no "float=center" which I assumed would have worked if it did in fact exist. Also, I would like the stars below the navigation bar to line up flush with the bottom of the last navigation bar entry. Neither of these are of as much concern to me, but, again, any help would be appreciated.

    3. I am also trying to find a javascript (or other means) of displaying a quote/Bible verse of the day on this site. So far I have only been able to find 31 day scripts, but I would like one that could work with 365 days and could in some way be tied to the day in the code so that my friend might be able to easily edit this file in the future (I am only doing the basic design). What I had in mind was something that might look like this: [month]+[date]=[quote] (really simplified obviously).

    I have some other questions, but I'll leave it at that for now. I am sorry to bring such basic questions up on this board, but I really am something of a newb, and have no idea what I am doing besides stealing code on the web here and there to fit my needs.

    Thanks in advance,
    Stephen

  2. #2
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    The site is centred in FF (which you should know, as you should be using FF as your main testing browser), but you will never get IE to behave like a proper browser without a valid and complete doctype at the start of the page - I would suggest html 4.01 strict doctype.

    The dropdown will not work in IE due to the wrong identifier in the javascript. The script is looking for elements with the id of "nav", whereas you do not have that id in your document. Changng the id in the javascript to "navigation", OR giving the navigation <ul> an id of "nav" should get that going.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles