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/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Satterwhite <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
For someone not familiar with CSS layout a great head start is the
Yahoo User Interface project (<a class="moz-txt-link-freetext"
href="http://developer.yahoo.com/yui/">http://developer.yahoo.com/yui/</a>).
In
particular look at the Grid CSS project
(<a class="moz-txt-link-freetext"
href="http://developer.yahoo.com/yui/grids/">http://developer.yahoo.com/yui/grids/</a>),
they explain and provide a
number of grid layout css files.<br>
<br>
It saves you starting from scratch.<br>
<br>
Regards,<br>
John<br>
<br>
<br>
<br>
Mark Turner wrote:
<blockquote
cite="mid3d5138980611130930s7aef6325m431f9ba67310e0cb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"
type="cite">
<pre wrap="">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 Satterwhite <a class="moz-txt-link-rfc2396E"
href="mailto:rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org"><rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 <a class="moz-txt-link-freetext"
href="http://www.ruby-forum.com/">http://www.ruby-forum.com/</a>.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group. <br> To post to this
group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
<br> To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br>
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en <br>
-~----------~----~----~----~------~----~------~--~---<br>
</body>
</html>
<br>
To center it wrap the whole lot in a <div
class="wrapper"></div>
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;
}
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---