Dark Bit Factory & Gravity

PROGRAMMING => General coding questions => Topic started by: Clanky on October 21, 2007

Title: Web Page Troubles... *sigh*
Post by: Clanky on October 21, 2007
Ok. I have an assignment for IT, and I have to make a web page for a chosen company. I have attached what I have done so far. We haven't got the content yet, so don't worry that the pages aren't filled with beautiful information  :updance:
But.
My problem is, I have done the page the easiest easy I know - trial and error! And, I have to say when you run it in Firefox it looks great!
Trusty old Microsoft Internet Explorer 7 makes it ugly...
I was wondering if there is an easy way to fix the annoying IE7 bug?

We tried a box model before this one, but it was making the page really wide - so you could scroll across to see nothing.

Hmm...
Title: Re: Web Page Troubles... *sigh*
Post by: Shockwave on October 21, 2007
I can't see a bug on IE or Firefox...

All that I can see is that the images you have can get moved around when the page is small. This is easy to fix.

As you are using css, look into using width to define the width of your elements, perhaps that will fix it.

For me though I can't see a bug
Title: Re: Web Page Troubles... *sigh*
Post by: Clanky on October 21, 2007
Yea I used width in CSS to fix the Restore Down bug...

The bug in IE is the picture positioning... like - the navigation bar doesn't match with the background 'navigation bar'... and the header (logo and name) cross into the navigation bar... (sorry for calling it a bug!)

How can I fix the positioning?
Title: Re: Web Page Troubles... *sigh*
Post by: Clanky on October 21, 2007
Hmm. I was also wondering what the little 10x10 pictures which appear for the bookmarked pages, as well as in the address bar are called? My teacher told me, but I forgot  :boxer:
It was an easy word to remember so I didn't write it down... silly me!
Title: Re: Web Page Troubles... *sigh*
Post by: Shockwave on October 21, 2007
favicon.ico

And to fix the positioning I guess that you should look at some style sheet reference :) I am shit at webpages sorry!
Title: Re: Web Page Troubles... *sigh*
Post by: Paul on October 21, 2007
haha, internet is not compatible with microsoft IE, and not hte other way round.
Title: Re: Web Page Troubles... *sigh*
Post by: Clanky on October 22, 2007
Ok. I was wondering. How could I make this bit of code work to make a Contact Us form?

Code: [Select]
<div id="content">
<script language="JavaScript" type="text/javascript">
function validate(){
if ( ( document.emailForm.text.value == "" ) || ( document.emailForm.email.value.search("@") == -1 ) || ( document.emailForm.email.value.search("[.*]" ) == -1 ) ) {
alert( "Please make sure the form is complete and valid." );
} else {
document.emailForm.action = "http://www.IDONTKNOWWHATTOPUTHERE!.confused"
document.emailForm.submit();
}
}
</script>

<div id="contact_form">
<form action="http://www.IDONTKNOWWHATTOPUTHEREEITHER!!!.evenmoreconfused" method="post" name="emailForm" target="_top" id="emailForm">
<div class="contact_email">
<p>Enter Your Name:</p>
<input name="name" size="30" class="inputbox" value="" type="text"></input>
<div id="contact_height">
<p>Email Address:</p>
<input name="email" size="30" class="inputbox" value="" type="text"></input>
<p>Message Subject:</p>
<input name="subject" size="30" class="inputbox" value="" type="text"></input>
<p>Enter Your Message:</p>
<textarea cols="50" rows="10" name="text" class="inputbox"></textarea>
<p><input name="email_copy" value="1" type="checkbox"></input>
Email a copy of this message to your own address</p>
<input name="send" value="Send" class="button" onclick="validate()" type="button"></input>
</div>
</div>

<input name="option" value="com_contact" type="hidden"></input>
<input name="con_id" value="1" type="hidden"></input>
<input name="sitename" value="Litchfield Springs Natural Spring Water" type="hidden"></input>
<input name="op" value="sendmail" type="hidden"></input>
</form>
</div>
</div>
Title: Re: Web Page Troubles... *sigh*
Post by: p01 on October 22, 2007
Just looking at acceability.html.

Regarding purely technical mistakes:

Now about more subtle mistakes:

Removing the extra id="header" beautifies the page a bit in IE6.


Hope that helps,
Title: Re: Web Page Troubles... *sigh*
Post by: Clanky on October 23, 2007
Thanks! I'll see what I can do
Title: Re: Web Page Troubles... *sigh*
Post by: Shockwave on October 24, 2007
That's worth some good karma p01.