Current location: Hot Scripts Forums » General Web Coding » CSS » Shoot me!


Shoot me!

Reply
  #1 (permalink)  
Old 05-17-07, 04:16 PM
rmurdo rmurdo is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Shoot me!

Ok, help me? Heh.

I have a css issue. Here is the portion that is causing me troubles..
css Code:
  1. #wrap {
  2. background: #FFEFCE;
  3. color: #000000;
  4. margin: 0 auto;
  5. width: 900px;
  6. }

The page looks fine however, its off center to the left a bit. If I resize the page, its allways that way.

I tryied to <center> it in the html but the contents in that wrap section are always off to the left a bit.

Any ideas?

Thanks,

Robert

Last edited by Nico; 05-17-07 at 04:19 PM.
Reply With Quote
  #2 (permalink)  
Old 05-17-07, 04:20 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Try:
css Code:
  1. margin: 0 auto 0 auto;
Reply With Quote
  #3 (permalink)  
Old 05-17-07, 04:23 PM
rmurdo rmurdo is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
No change.
Reply With Quote
  #4 (permalink)  
Old 05-17-07, 05:55 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Lets not shoot you....

Umm it seems to work fine...I used the following code:

HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>test</title><style type="text/css">#wrap{background: #FFEFCE;color: #000000;margin: 0 auto 0 auto;width: 900px;}</style></head><body><div id="wrap">test stuff</div></body></html>

All of it is centered fine...

What browser are you using?
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #5 (permalink)  
Old 05-17-07, 05:59 PM
rmurdo rmurdo is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
IE 6 does it on Firefox as well. Maybe a I have another peice of code that is messing it up.

ynot
autodetail is the site its on if you want to look. Oh, its com.
Reply With Quote
  #6 (permalink)  
Old 05-17-07, 08:55 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
Here I loaded your page (im assuming it is autodetail.com) onto my FireFox and i got this:

http://tinypic.com/view.php?pic=4kfb6tj
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #7 (permalink)  
Old 05-17-07, 09:16 PM
rmurdo rmurdo is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Sorry, its a borrowed name so I didnt want it showing up in search engines..

Its http://www.ynotautodetail.com

Rob
Reply With Quote
  #8 (permalink)  
Old 05-17-07, 10:08 PM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
haha I was wondering why it was up for sale...

Here is the new one:
http://tinypic.com/view.php?pic=4u2uo9z

It looks the same in Firefox, IE7, Opera and Netscape

Is there a problem in that image??
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
  #9 (permalink)  
Old 05-17-07, 10:14 PM
rmurdo rmurdo is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Yes, its not centered. If I put a center tag on the top the image with the pics will move over to the right. The left side will be in about the middle of the menu's but anything under that does not shift to center with it.
Reply With Quote
  #10 (permalink)  
Old 05-18-07, 06:20 AM
sushi4664's Avatar
sushi4664 sushi4664 is offline
Aspiring Coder
 
Join Date: Apr 2007
Location: USA
Posts: 411
Thanks: 0
Thanked 0 Times in 0 Posts
ahh I see what you are talking about...Ill work on it right after I come home from school....
__________________
- sushi
Visit http://napkinz.com/index.php - web comic that is update weekly

-ps: got through the archive...there are really funny comics in there....
Reply With Quote
Reply

Bookmarks


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bidflux ( Dont shoot the messenger) Boo General HotScripts Site Discussion 3 11-09-03 10:25 PM


All times are GMT -5. The time now is 02:03 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.