Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

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


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #21 (permalink)  
Old 03-23-2007, 04:37 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
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?
 
Reply With Quote
  #22 (permalink)  
Old 03-23-2007, 04:53 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
you have it on line?, you can use padding etc for the precise positioning
__________________
I still got me a signature to fill
 
Reply With Quote
  #23 (permalink)  
Old 03-23-2007, 05:15 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
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
 
Reply With Quote
  #24 (permalink)  
Old 03-23-2007, 05:24 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
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
 
Reply With Quote
  #25 (permalink)  
Old 03-23-2007, 05:34 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
Thank you so much for your help Cashcannon!!

It works!

But I never knew about the #menu and .menu would be different, thanks!
 
Reply With Quote
  #26 (permalink)  
Old 03-23-2007, 05:41 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
glad to help
__________________
I still got me a signature to fill
 
Reply With Quote
  #27 (permalink)  
Old 03-23-2007, 05:52 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
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.
 
Reply With Quote
  #28 (permalink)  
Old 03-23-2007, 08:25 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
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
 
Reply With Quote
  #29 (permalink)  
Old 03-23-2007, 05:31 PM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
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.
 
Reply With Quote
  #30 (permalink)  
Old 03-26-2007, 12:41 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
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
 
Reply With Quote
  #31 (permalink)  
Old 03-26-2007, 02:14 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
So i have to pretty much find a diff code to make it work?
 
Reply With Quote
  #32 (permalink)  
Old 03-26-2007, 04:57 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
no, see post #4
__________________
I still got me a signature to fill
 
Reply With Quote
  #33 (permalink)  
Old 03-26-2007, 05:49 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
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
 
Reply With Quote
  #34 (permalink)  
Old 03-26-2007, 06:02 AM
Tomassi's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 01-26-06
Location: Alkmaar
Posts: 2,506
iTrader: 0 / 0%
The only real difference is that the menu will come next to the content, right?
__________________
I still got me a signature to fill
 
Reply With Quote
  #35 (permalink)  
Old 03-26-2007, 06:44 AM
Junior Member
 
Join Date: 03-21-07
Location: Australia
Posts: 26
iTrader: 0 / 0%
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.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:30 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.