Jump to content


Missing Header


13 replies to this topic

#1 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 21 November 2005 - 10:29 AM

Hello

Can i anyone tell me why my header is missing from this link?

http://www.retrodesigner.co.uk/

also can you tell me why i have th egaps between each menu button, i followed a tutorial and at one point they worked fine then they suddenly had the gaps, would like to know how to remove them although i like the way they look.

Any help would ge great thanks

#2 Aphonik

    Young Padawan

  • Members
  • Pip
  • 12 posts

Posted 21 November 2005 - 01:56 PM

Your problem for the header is in this line of code:
  background-image: url(images\header.jpg);
You put the slash round the wrong way! Correct code looks like this:
  background-image: url(images/header.jpg);

As for the menu buttons.. I'll look into them now.

#3 syndrome

    P2L patient #4819

  • Twodded Staff
  • PipPipPipPip
  • 1,311 posts
  • Location:Nottingham, UK
  • Interests:Photoshop, Tennis, PS2, web design, CS:S

Posted 21 November 2005 - 03:24 PM

your background has the slash the wrong was round also.

#4 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 21 November 2005 - 06:14 PM

once again.. whitespace is the space problem. use this list instead:

<ul id="menu"
	><li id="active"><a href="index.html" id="current">About RD</a></li
	><li><a href="Gallery.html">Gallery</a></li
	><li><a href="RDnews.html">RD News</a></li
	><li><a href="ContactRD.html">Contact RD</a></li
	><li><a href="Links">Links</a></li
	></ul>

oh and btw, your site is looking aweful in firefox.

#5 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 22 November 2005 - 04:27 AM

Ha ha, simple mistake i hope

Thanks for correcting that for me

#6 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 22 November 2005 - 04:33 AM

View Postcoolaid, on Nov 21 2005, 11:14 PM, said:

once again.. whitespace is the space problem. use this list instead:

<ul id="menu"
	><li id="active"><a href="index.html" id="current">About RD</a></li
	><li><a href="Gallery.html">Gallery</a></li
	><li><a href="RDnews.html">RD News</a></li
	><li><a href="ContactRD.html">Contact RD</a></li
	><li><a href="Links">Links</a></li
	></ul>

oh and btw, your site is looking aweful in firefox.

Just checked my code for the menu, compared to your suggestion and it looks identical, not sure what changes are there. can you advise me on them please?

Yeah i have noticed it looks shocking in Firfox and Safari but not sure how to solve those issues, its still my first attempt and althought many wont be able to view the site correctly i am happy to get it running correctly in IE.

But if you have any advice on how i can improve its viewing in Firefox that would be a great help.

Cheers.

#7 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 22 November 2005 - 06:11 PM

i removed all whitespace from the menu. that means one tag ends and right after another tag starts.

just compare.

<ul>
	<li>text</li>
</ul>

with

<ul
	><li>text</li
></ul>
i placed the "greater than" sign next the the start of the following tag which removes empty space.

#8 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 22 November 2005 - 06:13 PM

i did notice that to be th eonly change but thought that may have been a personal preference as to the way you lay your site coding out,

why dies that make such a difference? cos still the same code in theory?

#9 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 23 November 2005 - 12:48 PM

it is the same code, but theres no more white space " ". for example, take this:

<li> <ul> blah </ul> <ul> blah </ul> </li>

in some browsers (i.e), the white space gets rendered and created a space in the webpage too. so if you connect all the tags so theirs no empy spaces, the white space wont exist on the webpage either.

so i just place the end tag "greater than" sign next to the first tag because you still want each <li> tag on a seperate line, but it still elimates any white space between the tags.

#10 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 23 November 2005 - 01:38 PM

thanks for a new bit of knowledge, just one more question regarding this issue, if i do make the change i now get a 2 pixel line between the menu bars rather than a one pixel line. whats the best method to sort this.

i would presume to remove the left hand side border but this would then leave the button on the far left without out a left border.

#11 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 23 November 2005 - 03:04 PM

remove the left side border.

but then in the html file, inside the last <li> tag, add:

style="border-left:1px solid #00;"

#12 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 23 November 2005 - 05:49 PM

Just tried your suggestion but, placing that command inside the last <li> tag just placed it as text on the web page, not sure where exactly you mean to put it, thanks

Edited by donkeymusic, 24 November 2005 - 11:01 AM.


#13 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 24 November 2005 - 12:23 PM

ok. like this on the last <li> tag (using the code i provided up there):

><li style="border-left:1px solid #00;"><a href="Links">Links</a></li


#14 donkeymusic

    Jedi In Training

  • Members
  • PipPip
  • 495 posts
  • Gender:Male
  • Location:Warrington, UK

Posted 25 November 2005 - 04:32 AM

thanks will try that





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users