Not sure where to put this!!

This is a discussion on "Not sure where to put this!!" within the Web Page Design section. This forum, and the thread "Not sure where to put this!! are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Feb 20th, 2004, 01:13
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Not sure where to put this!!

Please have a look here:

www.galaxy.silvern.co.uk

Ok... yes, I know they are images and I am naughty, but... am admitting defeat till I know more about Mozilla etc.

This looks fine in Opera, Mozilla and IE. Fantastic! But... I want the second row of buttons to butt up against the top row and its just not happening.

I have tried taking text block off the external style sheet, and separating them with a
tag but when I do that, the buttons don't work in Mozilla!

I think I am slowing going insane.

BTW... what do you think of the colours??

Sarah xxx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Feb 20th, 2004, 04:24
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
I have a terrible headache... It really hurts bad...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Feb 20th, 2004, 05:04
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Alright, i really hope you benefit from this.. took me about an hour

It validates as XHTML 1.0 Strict, and CSS 2/3

Here's the CSS... just copy and paste it into your external CSS file... (overwrite what you have now) it's all commented up.. so it's good



/* OPERA doesn't seem to let the buttons touch.. no clue why..
* I hate opera anyways
* This is also a pixel perfect layout, so touching any of the
* pixel sizes could definitely screw things up! */

/* regular body properties */
body {
background: #ede5d0;
margin-top: 57px;
}

/* this holds everything */
#content {
width: 716px;
margin-left: auto;
margin-right: auto;
border: 3px solid #006666;
}

/* this holds everything inside...
* basically only here for the "double border" effect */
#container {
margin: 1px;
padding: 1px;
border: 1px solid #006666;
}

/* this is for the text and crap */
#content2 {
padding-left: 4px;
padding-right: 4px;
padding-top: 1px; /* this is a fix for mozilla */
}

/* formats the UL for the navigation
* If you're wondering why i use an unordered list
* it's because it's the proper way to structure a navigation */
ul.navList {
list-style-type: none;
margin: 0;
padding: 0;
padding-left: 3px;
}

/* allows the LI's to all be on one line */
ul.navList li {
float: left;
margin-right: 1px;
}

/* your formatting for the links */
ul.navList li a {
width: 140px;
height: 31px;
background: url(buttons/homeup.gif) no-repeat;
display: block;
text-decoration: none;
}

ul.navList li a:hover {
background: url(buttons/homedown.gif) no-repeat;
}

/* this is for a fix in OPERA
* add extra formatting, and enclose
* all paragraphs with the

and </p>*/
p {
margin: 0;
margin-top: 15px;
}

/* IMPERATIVE.. used whenever you use the "float"
* property... in IE it doesn't do anything, but it
* does major work in mozilla, and i believe OPERA as well */
div.spacer {
clear: both;
}



And here's your beautiful markup



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title> Galaxy </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="content">
<div id="container">
[img]banner/banner.jpg[/img]

<ul class="navList">
[*]
[*]
[*]
[*]
[*]
[/list]
<ul class="navList">
[*]
[*]
[*]
[*]
[*]
[/list]

<div class="spacer"></div>

<div id="content2">


Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. </p>
</div>
</div>
</div>

</body>
</html>


That's that whole layout re-coded... hope this helps you on your HTML & CSS ventures
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Feb 20th, 2004, 09:26
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
jamslam you got too much time on your hands!

Sarah, using images ISNT naughty!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Feb 20th, 2004, 10:37
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Jamslam! You are an angel!! Now, I just have to go out for a while but I am going to give that a go when I get in...

Thank you!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Feb 20th, 2004, 10:40
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,182
Blog Entries: 7
Thanks: 27
Thanked 21 Times in 18 Posts
Jamslam.... get an avatar dude.. :wink:
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Feb 20th, 2004, 13:05
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Too much time? Hah... that's almost laughable. I was just on a break from my project

Yea I'll get around to making an avatar later today Rob, if it pleases you lol

Alright I added one.. but the BBS seemed to have distored the image... oh well
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Feb 20th, 2004, 15:23
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
I think the slam part is dynamic text... That's why its leaving ink stain looking trails as it moves. Make sure its static.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Feb 20th, 2004, 16:15
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by kulegamr

I think the slam part is dynamic text... That's why its leaving ink stain looking trails as it moves. Make sure its static.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Nope, it works fine in other BB's. The image is actually 64x64 (http://www.webtrickscentral.com/imag...slamScroll.gif)... but the BB made it 96x64 or something of that sort
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Feb 20th, 2004, 17:07
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, but still it shouldn't leave those marks even if it is the wrong size. Flash is made in vector's so size shouldn't effect the quality of all things made in flash. Imports are a different story.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Feb 20th, 2004, 18:04
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
It isn't flash It's an animated gif made in Adobe ImageReady...

Anywho, does anyone know why this BBS resizes avatars like that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old Feb 20th, 2004, 18:25
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
you serious??? My rightclick gives me flash properties... This is starting to scare me.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old Feb 20th, 2004, 19:05
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
wow this is weird..

when i go to properties it says the type isn't available... maybe the BBS has got the mime types screwed up? but i don't get flash options, that's for sure

that is definitely odd... O_o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #14  
Old Feb 21st, 2004, 17:30
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
I wonder if someone can help me with this:

If I add a banner that is larger than the one that Jamslam wrote that style.css for all my formatting goes funny and the buttons go down the page...

Any ideas on what I need to amend on the style sheet to get round that? Oh and also how do I centre the whole site as opposed to having it on the left?

Thanks in advance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #15  
Old Feb 21st, 2004, 17:50
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
the site is centered. Remember to have this at the top of every HTML Document:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I put that in the HTML, if the site isn't centered, it means you took that out, or used a different one.

Basically, you're going to have to do a lot of tweaking.

#content {
width: 716px;
margin-left: auto;
margin-right: auto;
border: 3px solid #006666;
}

You'd probably want to change that. But basically, making a banner smaller is a no-no, unless you want to make the width of the buttons smaller.

Making a banner larger is ok though, you're just going to have more space between the buttons. If you make the banner a lot bigger, like at least 20px, you can change this to "2px"

ul.navList li {
float: left;
margin-right: 1px;
}

And then finally, you want to change the left offset for each of the navigation lists (there's two lists). This is basically to even out both sides of the list, so they look centered.

ul.navList {
list-style-type: none;
margin: 0;
padding: 0;
padding-left: 3px;
}

Remember, you're going to have to do a lot of tweaking for each of those things I gave you, but it should work without you having to change anything else.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #16  
Old Feb 21st, 2004, 18:04
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Cheers Jamslam... I'd taken this out :

margin-left: auto;
margin-right: auto;


This is for someone elses site...

Sarah x
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #17  
Old Feb 21st, 2004, 19:19
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
yes, the "margin-left: auto; margin-right: auto;" is the proper way to center something using CSS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #18  
Old Feb 22nd, 2004, 15:46
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
I have another question... If I use blank images for the buttons and use normal text to go on top, the way I am centring it is by using the top and bottom padding. If I do this, I get space in between the buttons which I don't want.

Is there any way round this?

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #19  
Old Feb 22nd, 2004, 15:52
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
I believe the padding will actually make the height bigger, i mean that's what it does
So, get rid of the height property for the links. Then use the padding-top and padding-bottom to show the background image, AND center it. You'd probably want to have padding-top = padding-bottom, or give or take one pixel.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #20  
Old Feb 22nd, 2004, 16:10
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Jamslam - wow, super quick reply!! I shall give that a go.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!