Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Exclamation yahoo reset css - help?!

    hi, IU am using the YUI yahoo CSS reset library,

    on my site: http://vila.slicedcreative.co.uk/

    I am having trouble positioning the class="yui-g" and the class="yui-u First"

    please help

    css
    Code:
    #bd {
    	line-height: 0px;
    	background-image: url(/images/top_page_03.png);
    	background-repeat: no-repeat;
    	min-height: 400px;
    	position:relative;
    }
    .yui-g{
    	background-image: url(/images/1px_mid.png);
    	background-repeat: repeat-y;
    	padding-left:69px;
    	padding-right: 37px;
    	position:absolute;
    	top:49px;
    	left: 0px;
    	width: 850px;
    }
    .yui-u{
    	float: right;
    	width:200px;
    
    }
    
    .first{
    	width:500px;
    }
    html
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//E" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="css/reset-style.css" />
    <link rel="stylesheet" type="text/css" href="css/vila-style.css" />
    </head>
    <body>
    <div id="doc">
        	<div id="hd">
        		<h1>Villa Fulmar</h1>
        		<img src="/images/logo.png" border="0" alt="Vila Fula Logo" align="left" />
        		<img src="/images/top-text.png" border="0" alt="top text" class="toptext" align="right" />
        		<div id="navbar">
                        <img src="/images/left_side_nav.png" alt="left side nav" class="nav_end" />
                            <ul id="menu">
                                <li><a href="#" title="Vila Fulmar">Vila Fulmar</a></li>
                                <li><span></span><a href="#" title="The Area">The Area</a></li>
                                <li><span></span><a href="#" title="The Property">The Property</a></li>
                                <li><span></span><a href="#" title="Gallery">Gallery</a></li>
                                <li><span></span><a href="#" title="Contact Us">Contact Us</a></li>
                                <li><span></span><a href="#" title="Availability & Prices">Availability & Prices</a></li>
                            </ul>
                        <img src="/images/right_side_nav.png" alt="right side nav" class="nav_end" />
                 </div>
        	</div>
        	<div id="bd">
        	<div class="yui-g">
        			<div class="yui-u first"></div>
        			<div class="yui-u">
        				<div class="sideimage1"><a href="#"></a></div>
        				<div class="sideimage2"><a href="#"></a></div>
        				<div class="sideimage3"><a href="#"></a></div>
        			</div>
        		</div>
        	</div>
        	<div id="ft">
        		<div class="textonright">Web Design by Sliced</div>
        	&copy; Fulmar 2009. Contact us for our <u>Villa in Spain to rent on the Costa Blanca</u> 
        	</div>
        </div>
    </div>
    </body>
    </html>

  • #2
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Exclamation

    my css reset is saying:
    Code:
    .yui-g .yui-u, .yui-g .yui-g, .yui-g .yui-gb, .yui-g .yui-gc, .yui-g .yui-gd, .yui-g .yui-ge, .yui-g .yui-gf {
    width:49.1%;
    }
    If I take this out, I can make it work but I know I shouldn't be touching the reset CSS

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Goodmorning jarv,
    Not sure what you mean by having trouble positioning your classes. Sometimes it helps to put a background color on them just to see where they really are, like this -
    Code:
    /** CLASSES **/
    .yui-g{
    	background: #ccc url(/images/1px_mid.png) repeat-y;
    	
    }
    .yui-u{
    	
    
    }
    #rightcol {
     width : 220px;
     margin-right:41px;	
    
    }
    
    .first{
    	line-height: 18px;
    	margin-left: 62px;
    background: #f00;
    
    }
    Your "CSS reset" ... not sure where you got that or what it's supposed to do but that is making things way more complicated than it needs to be.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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