 |
|
| Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more. |
|
 |
|

03-23-2007, 04:37 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
I see! Its all making sense now!  But a little bit at a time. (post 4)
I got it positioned correct (width wise, less then 800 as you said) but I need to lower it a bit, thought if i added "height: 500px;" it would work but nope lol. But it still moves when i resize the browser :s or this just a CSS con?
|

03-23-2007, 04:53 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
|
you have it on line?, you can use padding etc for the precise positioning
__________________
I still got me a signature to fill
|

03-23-2007, 05:15 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
online -- http://www.smp.game-host.org/
If thats what you meant?
With the padding I dont get it.. Looked at the W3S site, ok so they gave me an example, So I thought it shuld work for me too, Though I dont know if ive done it right.
Index.php
Code:
<tr>
<td class="menu">
<div id="menu">
<div id="menu"><a href="http://www.smp.game-host.org/test.php"><img border="0" img src="/images/SM3_02.gif"></a><br></div>
</div>
</td>
</tr>
home.css
Code:
td.menu {padding-top: 5.5cm}
Im assuming the CSS is right? and wow thinking hurts my head lol
|

03-23-2007, 05:24 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
ehh not quite
Code:
td.menu {padding-top: 5.5cm}
will give all tds(table cells) within the div called menu padding
Code:
#menu {padding-top:5px;}
should work though
oh and you got class and id menu, it's one or the other.
#menu is id
.menu is class
__________________
I still got me a signature to fill
|

03-23-2007, 05:34 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
Thank you so much for your help Cashcannon!!
It works!
But I never knew about the #menu and .menu would be different, thanks!
|

03-23-2007, 05:41 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
glad to help
__________________
I still got me a signature to fill
|

03-23-2007, 05:52 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
EDIT: NVM Figured it out  lol
Another question, to add a second image, would I do the exact same thing, but just a different ID? (and the same with the CSS?)
Last edited by MaDDoG1221; 03-23-2007 at 06:05 AM.
|

03-23-2007, 08:25 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
|
better off using classes instead of ids, and yes.
You can use the same class you know, if possible.
__________________
I still got me a signature to fill
|

03-23-2007, 05:31 PM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
|
I got it all right, But its pushing the text aside :/ How do I stop it from doing that? You can look at my site if you want to see what i mean.
|

03-26-2007, 12:41 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
|
you have the width on 456px; on the menu div when you scale your browser widow you will see that happening, thats the problem with a fixed position
__________________
I still got me a signature to fill
|

03-26-2007, 02:14 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
|
So i have to pretty much find a diff code to make it work?
|

03-26-2007, 04:57 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
no, see post #4
__________________
I still got me a signature to fill
|

03-26-2007, 05:49 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
|
Yes I tried that but it only goes left to right, Which I didnt want in the first place, But ill have to redesign my images to suit it and change the way i was going to make site in the first place, oh well.
Guess its common to come across problems like these when trying to make a simple little website eh? lol
Thanks
|

03-26-2007, 06:02 AM
|
 |
v7n Mentor
Latest Blog: None
|
|
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
|
|
|
The only real difference is that the menu will come next to the content, right?
__________________
I still got me a signature to fill
|

03-26-2007, 06:44 AM
|
|
Junior Member
|
|
Join Date: 03-21-07
Location: Australia
Posts: 26
|
|
|
Yes thats how I wanted it, but nvm, Ill try it that way tomorrow, right now I have a crackin headache n need some sleep lol.
CSS is very confusing since Ive never done it before, tho it seems easy enough, just remembering everything is going to take some time.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:40 PM.
Powered by vBulletin Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP
|
|
|