Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Nesting Issues   Message List  
Reply | Forward Message #41989 of 52127 |
Re: [ydn-javascript] Nesting Issues

Hey Bryan,


On Dec 4, 2008, at 1:29 PM, Kraulin wrote:

> I'm having an issue with Grids. I'm trying to do some nesting of a
> yui-gd in a yui-gb. However when I place the gd inside gb, my gd is
> forced into what appears to be 1/3rd of the outer gb. What I'm
> expecting it to do is take up the whole width of the outer gb.
>
> I have created an example to illustrate...
>
> -=Bryan
>


For this nesting structure you'll need to apply a one-line CSS patch:

<style>
.yui-gb .yui-gd {width:100%;margin-left:0;}
</style>

Here's an example of that patch in action that I created for you:

http://yuiblog.com/sandbox/yui/v260/grids/gd-in-gb.html

Hope that helps.

Thanks,
Nate



> =============================================
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
>
> <head>
> <title>A Title</title>
> <link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/reset-fonts-grids/res\
et-fonts-grids.css

> " />
> <link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/base/base-min.css
> " />
> </head>
>
> <body>
>
> <div id="doc3" class="yui-t6">
>
> <div id="hd" style="background:pink;">
> <p>Header</p>
> </div>
>
> <div id="bd">
>
> <div id="yui-main">
> <div class="yui-b">
> <div class="yui-gb">
> <div class="yui-u first col1" style="background:cyan;">
> <p>Lorem ipsum dolor sit</p>
>
> <!-- Why does this not fill out cyan block into 1/3rd and 2/3rds? -->
> <div class="yui-gd">
> <div class="yui-u first" style="background:lightgreen;">
> <p>1</p>
> </div>
> <div class="yui-u" style="background:pink;">
> <p>2</p>
> </div>
> </div>
>
> </div>
> <div class="yui-u col2" style="background:cyan;">
> <p>Lorem ipsum dolor sit amet, consectetuer</p>
> </div>
> <div class="yui-u col3" style="background:cyan;">
> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing</p>
> </div>
> </div>
> </div>
> </div>
>
> <div class="yui-b" style="background:lightgreen;">
> <p>
> 300 px wide right side column - Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit, sed diam nonummy nibh euismod
> tincidunt ut laoreet dolore magna
> aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud
> exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
> commodo consequat. Duis
> autem vel eum iriure dolor in hendrerit in vulputate velit esse
> molestie consequat, vel illum dolore eu feugiat nulla facilisis at
> vero eros et accumsan et
> iusto odio dignissim qui blandit praesent luptatum zzril
> </p>
> </div>
>
> </div>
> <div id="ft" style="background:pink;">
> <p>
> Footer - Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
> Maecenas sit amet metus. Nunc quam elit,
> </p>
> </div>
> </div>
>
> </body>
>
> </html>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>




Thu Dec 4, 2008 11:26 pm

nate.koechley
Offline Offline
Send Email Send Email

Forward
Message #41989 of 52127 |
Expand Messages Author Sort by Date

I'm having an issue with Grids. I'm trying to do some nesting of a yui-gd in a yui-gb. However when I place the gd inside gb, my gd is forced into what...
Kraulin
Offline Send Email
Dec 4, 2008
9:29 pm

Hey Bryan, ... For this nesting structure you'll need to apply a one-line CSS patch: <style> .yui-gb .yui-gd {width:100%;margin-left:0;} </style> Here's an...
Nate Koechley
nate.koechley
Offline Send Email
Dec 4, 2008
11:26 pm

Nate, That worked swimmingly! Thanks! Question... at what point should we start to extend/patch grids? Specifically when and how to extend it. With a minimal...
Kraulin
Offline Send Email
Dec 5, 2008
2:59 am

Hey Byran, ... You're welcome! ... That's a fair question. I don't have a great answer for you. Grids, in its current state, works for most users most of the...
Nate Koechley
nate.koechley
Offline Send Email
Dec 5, 2008
5:40 am

Nate, Well you seem to have covered all three of my ideas by the end of your response! I think all three ideas have merit... A standard grids.css the way we do...
Kraulin
Offline Send Email
Feb 12, 2009
9:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help