SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast webgirl's Avatar
    Join Date
    Jun 2002
    Location
    Florida
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yahoo! UI Library: Grids CSS

    I am still somewhat green with CSS and am tying to modify one of these existing grids as a learning exercise.

    http://developer.yahoo.com/yui/grids/
    I am using yui-t7 with yui-g.

    I am trying to create the one layout I really want... The one they don't have an example of. Figures. I would ultimately like a three column 1/4, 1/2, 1/4 layout as seen in this example - less the right column.

    I just can't seem to put my finger on what exactly needs to be changed in the grid.css to make this modification. It looks simple enough, but every time I try it it comes out all over the place.

    Any help would be greatly appreciated. Thanks in advance!


    ---------
    CSS:
    reset.css
    fonts.css
    grids.css

    ---------
    My code from one of their examples


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <!-- layouts require "Standards Mode" rendering, which the 401-strict doctype triggers -->
    <html>
    <head>
    	<title>Grids CSS Example - YUI Grids</title>
    	<link rel="stylesheet" type="text/css" href="http://developer.yahoo.com/yui/build/reset/reset.css" />
    	<link rel="stylesheet" type="text/css" href="http://developer.yahoo.com/yui/build/fonts/fonts.css" />
    	<link rel="stylesheet" type="text/css" href="http://developer.yahoo.com/yui/build/grids/grids.css" />
    </head>
    
    <body>
    <div id="doc" class="yui-t7"><!-- possible values: t1, t2, t3, t4, t5, t6, t7 -->
    
    	<div id="hd">
    		<!-- start: your content here -->
    		
    		
    						<!-- YOUR STUFF HERE -->
    						<p>MASTHEAD: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
    						<!-- YOUR STUFF HERE -->
    
    
    		<!-- end: your content here -->
    	</div>
    
    	<div id="bd">
    		<!-- start: primary column from outer template -->
    		<div id="yui-main">
    			<div class="yui-b">
    				<!-- start: stack grids here -->
    	
    						
    
    
    				<div class="yui-g">
    					<div class="yui-u first">
    						<!-- start: your content here -->
    						<div>
    
    							<div class="hd">
    								<h2>Unit AB</h2>
    							</div>
    							<div class="hd">
    								<p>GRID UNIT: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat dolor, id aliquam leo tortor eget odio. Pellentesque orci arcu, eleifend at, iaculis sit amet, posuere eu, lorem. Aliquam erat volutpat. Phasellus vulputate. Vivamus id erat. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nunc gravida. Ut euismod, tortor eget convallis ullamcorper, arcu odio egestas pede, ut ornare urna elit vitae mauris. Aenean ullamcorper eros a lacus. Curabitur egestas tempus lectus. Donec et lectus et purus dapibus feugiat. Sed sit amet diam. Etiam ipsum leo, facilisis ac, rutrum nec, dignissim quis, tellus. Sed eleifend.</p>
    							</div>
    						</div>
    						<!-- end: your content here -->
    
    
    					</div>
    					<div class="yui-g">
    						<div class="yui-u first">						
    							<!-- start: your content here -->
    							<div>
    								<div class="hd">
    									<h2>Unit C</h2>
    								</div>
    								<div class="hd">
    
    									<p>GRID UNIT: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat dolor, id aliquam leo tortor eget odio. Pellentesque orci arcu, eleifend at, iaculis sit amet, posuere eu, lorem. Aliquam erat volutpat. Phasellus vulputate. Vivamus id erat. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nunc gravida. Ut euismod, tortor eget convallis ullamcorper, arcu odio egestas pede, ut ornare urna elit vitae mauris. Aenean ullamcorper eros a lacus. Curabitur egestas tempus lectus. Donec et lectus et purus dapibus feugiat. Sed sit amet diam. Etiam ipsum leo, facilisis ac, rutrum nec, dignissim quis, tellus. Sed eleifend.</p>
    								</div>
    							</div>
    							<!-- end: your content here -->
    						</div>
    						
    						
    						<div class="yui-u">
    							<!-- start: your content here -->
    							<div>
    
    								<div class="hd">
    									<h2>Unit D</h2>
    								</div>
    								<div class="hd">
    									<p>GRID UNIT: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat dolor, id aliquam leo tortor eget odio. Pellentesque orci arcu, eleifend at, iaculis sit amet, posuere eu, lorem. Aliquam erat volutpat. Phasellus vulputate. Vivamus id erat. Nulla facilisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nunc gravida. Ut euismod, tortor eget convallis ullamcorper, arcu odio egestas pede, ut ornare urna elit vitae mauris. Aenean ullamcorper eros a lacus. Curabitur egestas tempus lectus. Donec et lectus et purus dapibus feugiat. Sed sit amet diam. Etiam ipsum leo, facilisis ac, rutrum nec, dignissim quis, tellus. Sed eleifend.</p>
    								</div>
    							</div>
    							<!-- end: your content here -->
    
    						</div>
    					</div>
    				</div>
    				
    				
    				
    				
    				<!-- end: stack grids here -->
    			</div>
    		</div>
    		<!-- end: primary column from outer template -->
    		
    	</div>
    	<div id="ft">
    	<!-- start: your content here -->
    
    	
    	
    						<!-- YOUR STUFF HERE -->
    						<p>FOOTER: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus. Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa sit amet dignissim cursus, quam lacus feugiat.</p>
    						<!-- YOUR STUFF HERE -->
    	
    	
    	<!-- end: your content here -->	
    	</div>
    </div>
    </body>
    </html>
    
    <!-- com2.devnet.scd.yahoo.com uncompressed/chunked Mon Jul  3 08:56:25 PDT 2006 -->

  2. #2
    SitePoint Enthusiast webgirl's Avatar
    Join Date
    Jun 2002
    Location
    Florida
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahhh nevermind. lol It was staring me right in the face. I need a :doh: icon!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •