how to center a wider-than-browser banner graphic?

  • Matthew
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 07, 2005
  • Posts: 266
  • Loc: Canada
  • Status: Offline

Post June 22nd, 2009, 9:43 am

Both of your (graphixboy and joebert) solutions above work, but I think I'll go with graphixboy's because it doesn't require typing in content that has to be hidden. Maybe on some obscure browser that text will show up and it would be better if it didn't. Or, maybe, having that text there is better for SEO, so who knows.

If any of you know why one is better than the other, please let me know.

(P.S. I'm amazed at how helpful you all are. Thank you so much. These forums, or rather the people in the forums, are great.)
Matthew Doucette, Xona Games
Award winning indie game studio.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 22nd, 2009, 9:43 am

  • Matthew
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 07, 2005
  • Posts: 266
  • Loc: Canada
  • Status: Offline

Post June 22nd, 2009, 9:47 am

Check it out, it works in both IE and Firefox:
http://xona.com/

(Next I should split the banner in to and link the bottom part to the game page.)
Matthew Doucette, Xona Games
Award winning indie game studio.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post June 22nd, 2009, 11:18 am

Looks good. Joebert's example would actually be useful for mobile users (text would show for them), but doesn't look like that's really a concern judging by the large header. :) Because of that use, I don't think it would count against SEO.

Just for grins, you could also swap the text for an ' ' and not have to worry about text showing when you have a container that needs something, just anything, inside of it (collapsing divs is a perfect example). However, I do like to try and avoid '!important' when possible as you never know what changes are coming down the pipe to CSS.

Then again, joebert usually knows something I don't. :)
I'd love to change the world, but they won't give me the source code.
  • Matthew
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 07, 2005
  • Posts: 266
  • Loc: Canada
  • Status: Offline

Post June 22nd, 2009, 12:36 pm

Thanks. You guys are great. I'm not a superb web developer, I just want a website that attracts attention to my game, but is really nothing more than a tech blog. I think the banner alone accomplishes this without needing to redesign the site all "game-like". I don't think people expect too much from indie game dev websites (hopefully).

Another idea I had, was using a youtube video (resized smaller) as a part of the header of the site. Is that a bad idea? I'll tell you why it's a good idea: It increases views of the video significantly, and also (if the video shows game play right off the bat) showcases the game immediately for what it is.

If you scroll to the bottom of http://xona.com/ (or visit http://matthewdoucette.com/) you can still see the banner where I did this before. What do you think of that idea?
Matthew Doucette, Xona Games
Award winning indie game studio.
  • jacksmith
  • Novice
  • Novice
  • No Avatar
  • Joined: Jun 01, 2009
  • Posts: 16
  • Loc: London
  • Status: Offline

Post June 24th, 2009, 12:52 am

I dont think it is possible as you want the website to not introduce a left-right scroll bar.
  • Matthew
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 07, 2005
  • Posts: 266
  • Loc: Canada
  • Status: Offline

Post June 24th, 2009, 5:18 am

jacksmith wrote:
I dont think it is possible as you want the website to not introduce a left-right scroll bar.

I meant only due to the 1280px wide header graphic, and it's working!
Matthew Doucette, Xona Games
Award winning indie game studio.
  • SomeGuyFromCali
  • Born
  • Born
  • No Avatar
  • Joined: Sep 13, 2009
  • Posts: 1
  • Status: Offline

Post September 13th, 2009, 5:26 pm

UPSGuy: I didn't need to have clickability for my header, I just needed to know how to center a logo 1600 px wide on a 1024 px screen in CSS. Thanks a million for posting your solution, it worked great for me.
  • spacex
  • Born
  • Born
  • No Avatar
  • Joined: Jun 18, 2010
  • Posts: 1
  • Status: Offline

Post June 18th, 2010, 7:57 am

I'm trying to do the same as the OP but with a javascript fading slideshow.

Please see website: .archivedepartment.


Does anyone know if its possible?

Thanks,
spacex

Post Information

  • Total Posts in this topic: 23 posts
  • Users browsing this forum: No registered users and 135 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.