Rails and Wide Screens

This is probably not a real rails question, but I thought I’d post it
here as rails seems to have magical ways of dealing with some side
issues.

I have a web site that looks great on a standard screen. If the user has
one of the new wide screens, though, the formatting goes haywire. I’d be
quite happy if it simply centered the content and extended the side
areas, but I’m not sure how to get it to do that.

Can anyone offer any suggestions?

—Michael

It would be helpful if you could point to the site, or at least give
the HTMl/RHTML + CSS files.

Regardless though, depending on your layout what you described should
be possible and easy… if the layout is using CSS for placement.

-mark

For someone not familiar with CSS layout a great head start is the Yahoo User Interface project (http://developer.yahoo.com/yui/). In particular look at the Grid CSS project (http://developer.yahoo.com/yui/grids/), they explain and provide a number of grid layout css files.

It saves you starting from scratch.

Regards,
John



Mark T. wrote:
It would be helpful if you could point to the site, or at 
least give
the HTMl/RHTML + CSS files.

Regardless though, depending on your layout what you described should
be possible and easy… if the layout is using CSS for placement.

-mark

On 11/13/06, Michael S. <[email protected]>
wrote:

This is probably not a real rails question, but I 
thought I'd post it
here as rails seems to have magical ways of dealing with some side
issues.

I have a web site that looks great on a standard screen. If the user has
one of the new wide screens, though, the formatting goes haywire. I’d be
quite happy if it simply centered the content and extended the side
areas, but I’m not sure how to get it to do that.

Can anyone offer any suggestions?

—Michael


Posted via http://www.ruby-forum.com/.

</pre>
  

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

To center it wrap the whole lot in a

Then in the CSS set the width to a maximum allowed value and center it
using margin: auto;

div.wrapper {
width: X px (or whatever unit you choose)
margin: auto;
}