CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 95 users online: 9 members, 59 guests and 27 bots.
Members: blue_bear_94, JosJuice, lafferjm, Link, Piguy-3.14, pimathbrainiac.
Bots: VoilaBot (3), Spinn3r (1), Magpie Crawler (4), Googlebot (19).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
Svenne


Member


Joined: 03 Jan 2010
Posts: 103

Posted: 14 Jan 2012 04:12:42 pm    Post subject: Creating a webpage, need some advice

Hello fellow Cemetechians!
For some time now I've been trying to create a website for my parents, who run a china shop. However, no matter how hard I try, I can't get it to work properly.
First off, I can't even get it to display properly. If you look at the files I've posted at the bottom of this post you'll see that there's no doctype declaration. The reason is that it makes the page display incorrectly. This is how it looks like in Firefox without the doctype declaration:

It's pretty much how it's supposed to look, but for some reason Firefox adds padding for the copyright disclaimer, even though I've the default padding to 0px.
...and this is how it looks like with the doctype declaration:

The purple background disappears completely, and the content div ends up being 0 pixels high.

I also have problems with content overflow; instead of the page getting taller, the content petrudes out the bottom of the page, leaving an ugly gap at the bottom. I've set the content div to automatically use scrollbars when it happens, but this leads to the copyright notice always being visible on the screen.

Finally, there's the catalogue (on the page named 'butik.html'). I've created a script which reads the contents of an .xml and outputs it as a table. The problem is, the table doesn't display at all. When looking in Firefox' web console I can see it loading the document properly, but I don't get any output. I have absolutely no idea why this happens.

Here's the files incase anyone's intrested in taking a look: http://www.mediafire.com/?73a5036tpet3p8a

If anyone could help, it'd be very appreciated.


Last edited by Svenne on 15 Jan 2012 06:26:03 am; edited 1 time in total
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 15 Jan 2012 02:59:25 am    Post subject:

In that zip isn't the css-stylesheet, so I don't know how you'r making it... :/
_________________



Back to top
comicIDIOT


Guru


Joined: 01 May 2006
Posts: 5105
Location: SFBA, California

Posted: 15 Jan 2012 03:21:09 am    Post subject:

Feel free to post the CSS to paste bin and link it for those of us who have already downloaded the files already, we can make the CSS file ourselves by copy-pasting.
_________________


-Alex
Back to top
Svenne


Member


Joined: 03 Jan 2010
Posts: 103

Posted: 15 Jan 2012 06:26:40 am    Post subject:

Oops, forgot to include it. I've updated the archive in the OP.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55732
Location: Earth, Sol, Milky Way

Posted: 15 Jan 2012 09:18:39 am    Post subject:

Chances are that your HTML and/or CSS is broken and malformed, which is why it suddenly falls apart when you specify a doctype and your browser(s) turn down their ability to correct for errors in CSS and HTML. If I get some time after working on my book today I will try to look through what you have so far and see if I can spot anything. Also, be sure to use the W3C validators to track down typos and errors in your HTML and CSS:

http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
_________________


Back to top
Rhombus P.


Advanced Member


Joined: 27 Jan 2009
Posts: 237
Location: Local Host

Posted: 15 Jan 2012 10:42:04 am    Post subject:

I think your problems lie in all the position: absolute and position: relative. When i started playing around with the code i got the background to at least show up by changing the div.content from position :absolute to position : relative but i would recommend re-writing it to use more container divs and less positions
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.027591 seconds.