Results 1 to 13 of 13

Thread: layout problem

  1. #1
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default layout problem

    Quote Originally Posted by byknight
    hello everybody,

    first i like to say hey to all of you im new to the form and this is my first post. so i like to introduce myself.

    whell im hans im from the netherlands and im 32 years old. im verry dyslectic so on the spelling part you have to bear with me.

    im working as a designer most logo`s.

    i have done some codeing in skool but thats a long ago.

    at the momend im working on a site and typolight realy made me excided abouth using a cms. first time for me.
    i remade a themp. so as to use it for my site. the resolt is this:




    as you see theres something wrong with the articles and news items.
    also my footer is missing.

    Here is the code:
    HTML:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <base href="<?php echo $this->base; ?>"></base>
    <title><?php echo $this->mainTitle; ?> - <?php echo $this->pageTitle; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->charset; ?>" />
    <meta name="description" content="<?php echo $this->description; ?>" />
    <meta name="keywords" content="<?php echo $this->keywords; ?>" />
    <?php echo $this->robots; ?>
    <script type="text/javascript" src="plugins/tablesort/js/tablesort.js"></script>
    <script type="text/javascript" src="plugins/mootools/mootools.js"></script>
    <script type="text/javascript" src="plugins/slimbox/js/slimbox.js"></script>
    <script type="text/javascript" src="plugins/ufo/ufo.js"></script>
    <link rel="stylesheet" href="plugins/slimbox/css/slimbox.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="plugins/tablesort/css/tablesort.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="/style.css" media="screen" />
    <?php echo $this->head; ?>
    <link rel="stylesheet" type="text/css" href="tl_files/bluefreedom2/style.css" media="screen" />
    </head>
    
    <body <?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; if ($this->onload): ?> onload="<?php echo $this->onload; ?>"<?php endif; ?>>
    
    <div id="wrap">
      <div id="content">
        
      	<div class="header"><?php echo $this->header; ?></div>
    
    		<div class="breadcrumbs">
    		Home &middot; <span class="t1">You are here</span></div>
    		<div class="left"><?php echo $this->left; ?></div>
    		<div class="middle"><?php echo $this->main; ?></div>
    		<div class="right"><?php echo $this->right; ?></div>
    	    <div id="clear"></div>
    	</div>
    <div id="bottom"></div>
    
    <div id="footer"><?php echo $this->footer; ?></div>
    
    
    [img]<?php echo $this->base; ?>cron.php[/img]
    
    <?php echo $this->mootools; ?>
    
    <?php if ($this->urchinId): ?>
    
    <script type="text/javascript" src="<?php echo $this->urchinUrl; ?>"></script>
    <script type="text/javascript">
    <![CDATA[//><!--
    try {
    var pageTracker = _gat._getTracker("<?php echo $this->urchinId; ?>");
    pageTracker._trackPageview();
    } catch(err) {}
    //--><!]]>
    </script>
    
    <?php endif; ?>
    
    
    </body>
    </html>
    and this is the css:
    Code:
    * {
    
    } 
    
    body {
    	background: #000000;
    	font: .74em calibri;
    	line-height: 1.5em;
    	background-image: url(img/bg.jpg);
    	color: #CCC;
    	background-repeat: repeat-x;
    }
    a {
    	color: #CCC;
    	text-decoration: none;
    }
    
    a:hover {
    	text-decoration: underline;
    	color: #f90;
    }
    
    
    #wrap {
    	width: 970px;
    	left: 50%;
    	position: absolute;
    	margin-left: -485px;
    	top: 0px;
    }
    
    #top { 
    background: #fff url('images/topbg.jpg');
    height: 30px;
    }
    
    #content {
    
    }
    
    #bottom {
    	height: 20px;
    }
    
    
    .header {
    	height: 509px;
    	background-image: url(img/index_01.jpg);
    	width: 970px;
    	left: 0px;
    	position: relative;
    }
    
    .header h1 { padding-left: 17px; padding-top: 22px; font-size: 22px; color: #ccc; }
    .header h1 a { font-size: 22px; color: #FF9900; text-decoration: none;}
    .header h2 { padding-left: 17px; padding-top: 0px; font-size: 17px; color: #ccc; }
    
    .breadcrumbs {
    
    }
    	
    .middle {
    	float: left;
    	width: 530px;
    	text-align: justify;
    	top: 158px;
    	padding: 0 20px 0 20px;
    	height: auto;
    }
    .left {
    	float: left;
    	width: 200px;
    	height: auto;
    	
    }
    
    .left ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    }
    
    .left li {
    	margin-bottom:5px;
    	list-style-type: square;
    	color: #f90;
    }
    
    .right {
    	float: right;
    	width: 200px;
    	height: auto;
    	
    }
    
    .right ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    }
    
    .right li {
    	margin-bottom:5px;
    	list-style-type: square;
    	color: #f90;
    }
    
    .middle h2 { color: #Ff9900; font-size: 16px; margin-bottom: 10px; margin-top: 10px;}
    .right h2 { color: #FF9900; font-size: 14px; margin-top: 15px;}
    .left h2 { color: #FF9900; font-size: 14px; margin-top: 15px;}
    
    
    #clear {
    	display: block;
    	clear: both;
    	width: 100%;
    	height:1px;
    	overflow:hidden;
    }
    
    #footer {
    	height: 150px;
    	background-image: url(img/index_11.jpg);	
    }
    
    .t1 {
    	color: #CCC;
    }
    .mod_navigation .submenu { display:inline; }
    .mod_navigation .level_2 { margin-top:-18px; margin-bottom:-9px; }
    im a real nood at this, so anyhelp i would apriciate.!

  2. #2
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: layout problem

    As I see now on your page you set:
    Code:
    * {
    height:20px;
    }
    remove it and will better
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  3. #3
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default Re: layout problem

    Qrczak Thanks for the help

    unfortunetly id doesn`t change mutch

    the articles are still pushes together.

    here`s my code as it is now:

    CSS
    Code:
    body {
    	background: #000000;
    	font: 12px calibri;
    	line-height: 14px;
    	background-image: url(img/bg.jpg);
    	color: #CCC;
    	background-repeat: repeat-x;
    }
    a {
    	color: #CCC;
    	text-decoration: none;
    }
    
    a:hover {
    	text-decoration: underline;
    	color: #f90;
    }
    
    
    #wrap {
    	width: 970px;
    	left: 50%;
    	position: absolute;
    	margin-left: -485px;
    	top: 0px;
    }
    
    #top { 
    background: #fff url('images/topbg.jpg');
    height: 30px;
    }
    
    #content {
    
    }
    
    #bottom {
    	height: 20px;
    }
    
    
    .header {
    	height: 509px;
    	background-image: url(img/index_01.jpg);
    	width: 970px;
    	left: 0px;
    	position: relative;
    }
    
    .header h1 { padding-left: 17px; padding-top: 22px; font-size: 22px; color: #ccc; }
    .header h1 a { font-size: 22px; color: #FF9900; text-decoration: none;}
    .header h2 { padding-left: 17px; padding-top: 0px; font-size: 17px; color: #ccc; }
    
    .breadcrumbs {
    
    }
    	
    #menu {
    	position:absolute;
    	left:500px;
    	top:450px;
    	width:300px;
    	height:25px;
    	z-index:1;
    	Display:inline;
    	font-size:20px;
    	font-weight: bold;
    	text-transform:uppercase;
    	list-style-type:circle;
    	
    	
    }
    	
    .Clear{
    	height:0.1px;
    	Overflow:hidden;
    	Font-size:0.1px;
    	Line-height:0.1px;
    	clear:both;
    	}
    
    .invisible{
    	width:0px;
    	height:0px;
    	left:-1000px;
    	top:-1000px;
    	Position:absolute;
    	overflow:hidden;
    	display:inline;
    	}
    	
    	
    .middle {
    	float: right;
    	width: 720px;
    	text-align: justify;
    	top: 158px;
    	padding: 0 20px 0 20px;
    	
    }
    
    .left {
    	float: left;
    	width: 200px;
    	height: auto;
    	
    }
    
    .left ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    }
    
    .left li {
    	margin-bottom:5px;
    	list-style-type:circle;
    	color: #f90;
    	font-weight: bold;
    	display:inline;
    }
    
    .left p{
    	margin-bottom:5px;
    	list-style-type:lower-roman;
    	color: #ccc;
    	font-weight: bold;
    	display:inline;
    }
    
    .left a{
    	margin-bottom:5px;
    	list-style-type:lower-roman;
    	color: #ccc;
    	font-weight: bold;
    	display:inline;
    }
    #menu ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    }
    /* active pagina */
    #menu li {
    	margin-bottom:5px;
    	list-style-type:lower-roman;
    	color: #f90;
    	font-weight: bold;
    	display:inline;
    }
    /*de overige keuzes- alinia*/
    #menu a{
    	margin-bottom:5px;
    	list-style-type:lower-roman;
    	color: #fff;
    	font-weight: bold;
    	display:inline;
    }
    .middle h1 { color: #Ff9900; font-size: 18px; margin-bottom: 10px; margin-top: 10px;}
    .left h1 { color: #FF9900; font-size: 18px; margin-top: 15px;}
    
    
    #clear {
    	display: block;
    	clear: both;
    	width: 100%;
    	height:1px;
    	overflow:hidden;
    }
    
    .footer {
    	
    	height: 150px;
    	position:relative;
    	background-image: url(img/index_11.jpg);	
    }
    
    .t1 {
    	color: #CCC;
    }
    .mod_navigation .submenu { display:inline; }
    .mod_navigation .level_2 { margin-top:-18px; margin-bottom:-9px; }

    and html:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <base href="<?php echo $this->base; ?>"></base>
    <title><?php echo $this->mainTitle; ?> - <?php echo $this->pageTitle; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->charset; ?>" />
    <meta name="description" content="<?php echo $this->description; ?>" />
    <meta name="keywords" content="<?php echo $this->keywords; ?>" />
    <?php echo $this->robots; ?>
    <script type="text/javascript" src="plugins/tablesort/js/tablesort.js"></script>
    <script type="text/javascript" src="plugins/mootools/mootools.js"></script>
    <script type="text/javascript" src="plugins/slimbox/js/slimbox.js"></script>
    <script type="text/javascript" src="plugins/ufo/ufo.js"></script>
    <link rel="stylesheet" href="plugins/slimbox/css/slimbox.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="plugins/tablesort/css/tablesort.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="/style.css" media="screen" />
    <?php echo $this->head; ?>
    <link rel="stylesheet" type="text/css" href="tl_files/bluefreedom2/style.css" media="screen" />
    </head>
    
    <body <?php if ($this->class): ?> class="<?php echo $this->class; ?>"<?php endif; if ($this->onload): ?> onload="<?php echo $this->onload; ?>"<?php endif; ?>>
    
    <div id="wrap">
      
      <div id="content">
        
      	<div class="header"><?php echo $this->header; ?>
    	</div>
    		
    	<div class="middle"><?php echo $this->main; ?></div>
    		
    	<div class="left"><?php echo $this->left; ?></div>
    	    
    	<div id="clear"></div>
      </div>
      <div id="bottom"></div>
    </div>	
    
    
    </body>
    </html>

  4. #4
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default Re: layout problem

    hey, im almoste there i figgerd the allinea problems out i had to be fine the li a p ect. in the css i did so and thas sorted out.

    i still have one remaining problem the lightbos images apear way to small and when you open them you get a realy low-height but normal with lightbox image like this :

  5. #5
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: layout problem

    Quote Originally Posted by byknight
    i still have one remaining problem the lightbos images apear way to small and when you open them you get a realy low-height but normal with lightbox image like this :
    Becouse you still have
    Code:
    * {
    height:20px;
    }
    remove it and see what happen with your images

    And dont't paste to your posts 'html code" - it's not html code but your template code it's something different.

    Actually I don't know what you mean "the articles are still pushes together"? What articles? I see only one.
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  6. #6
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: layout problem

    You have to browse your css files becouse you have very messy code. For example:
    for p you set list-style-type it's non sense, these two things aren't related.
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  7. #7
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default Re: layout problem

    qrczak

    pls look here: http://typo.byknight.nl

    i removed the

    Code:
     * {
    height:20px;
    }
    in my css or do i have to look some other place?


    the lightbox is still not showing fine

    im sorry my code is so messy as i said this id my first themplate ever to build and is based on the bluethemplate.

  8. #8
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: layout problem

    Quote Originally Posted by byknight
    i removed the
    Code:
     * {
    height:20px;
    }
    No, you don't. It's still there. Look at: http://typo.byknight.nl/style.css third line

    Quote Originally Posted by byknight
    in my css or do i have to look some other place?
    How you editing your css files? Manually or via csseditor in Typolight Backend?


    Quote Originally Posted by byknight
    im sorry my code is so messy as i said this id my first themplate ever to build and is based on the bluethemplate.
    You don't need to be sorry. You newbie, you still learning and that's OK
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  9. #9
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default Re: layout problem

    i cleand up my mess i hope so that i understand the css bether.

    css
    Code:
    body {
    	background: #000000;
    	font: 12px calibri;
    	line-height: 14px;
    	background-image: url(img/bg.jpg);
    	color: #CCC;
    	background-repeat: repeat-x;
    }
    
    /*a link*/
    a {
    	color: #CCC;
    	text-decoration: none;
    }
    /*a link on hover*/
    a:hover {
    	text-decoration: underline;
    	color: #f90;
    }
    
    /*the wrap*/
    #wrap {
    	width: 970px;
    	left: 50%;
    	position: absolute;
    	margin-left: -485px;
    	top: 0px;
    }
    
    /*the content space holts the header clear middle left and bottom div`s*/
    #content {
    
    }
    /*bottom creates a 20px space at the bottom of the themplate*/
    #bottom {
    	height: 20px;
    }
    
    /*header */
    .header {
    	height: 509px;
    	background-image: url(img/index_01.jpg);
    	width: 970px;
    	left: 0px;
    	position: relative;
    }
    /*h1 heading 1*/
    .header h1 {
    	padding-left: 17px;
    	padding-top: 22px; 
    	font-size: 22px; 
    	color: #ccc; 
    	}
    	
    /*heading 1 link*/
    .header h1 a {
    	font-size: 22px; 
    	color: #FF9900; 
    	text-decoration: none;
    	}
    /*heading 2 a bit smaller*/
    .header h2 {
    	padding-left: 17px; 
    	padding-top: 0px; 
    	font-size: 17px; 
    	color: #ccc; }
    
    /*het menu*/	
    #menu {
    	position:absolute;
    	left:500px;
    	top:450px;
    	width:300px;
    	height:25px;
    	z-index:1;
    	Display:inline;
    	font-size:20px;
    	font-weight: bold;
    	text-transform:uppercase;
    
    }
    /*unsorted list*/
    #menu ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    	list-style:circle;
    }
    
    /* list item*/
    #menu li {
    	margin-bottom:5px;
    	color: #f90;
    	font-weight: bold;
    	display:inline;
    }
    
    /*menu link*/
    #menu a{
    	margin-bottom:5px;
    	color: #fff;
    	font-weight: bold;
    	display:inline;
    }
    /*this ceeps a line 0.1px high on both sides clear*/
    .Clear{
    	height:0.1px;
    	Overflow:hidden;
    	Font-size:0.1px;
    	Line-height:0.1px;
    	clear:both;
    	}
    
    /*?*/	
    .invisible{
    	width:0px;
    	height:0px;
    	left:-1000px;
    	top:-1000px;
    	Position:absolute;
    	overflow:hidden;
    	display:inline;
    	}
    	
    /*main*/	
    .middle {
    	float: right;
    	width: 700px;
    	text-align: justify;	
    }
    /*unsorted list*/
    .middle ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    }
    /*list */
    .middle li {
    	margin-bottom:5px;
    	color: #f90;
    	font-weight: bold;
    	display:inline;
    }
    /*a paragraph*/
    .middle p{
    	margin-bottom:5px;
    	color: #ccc;
    	font-weight: bold;
    	display:inline;
    }
    /*a link*/
    .middle a{
    	margin-bottom:5px;
    	color: #ccc;
    	font-weight: bold;
    	display:inline;
    }
    
    /*left colum*/
    .left {
    	float: left;
    	width: 200px;
    	height: auto;
    	
    }
    /*left unsorted list*/
    .left ul {
    	padding: 20px 0 15px 20px;
    	margin:0;
    }
    
    /*left list item*/
    .left li {
    	margin-bottom:5px;
    	color: #f90;
    	font-weight: bold;
    	display:inline;
    }
    
    /*a paragraph*/
    .left p{
    	margin-bottom:5px;
    	color: #ccc;
    	font-weight: bold;
    	display:inline;
    }
    
    /*a link*/
    .left a{
    	margin-bottom:5px;
    	color: #ccc;
    	font-weight: bold;
    	display:inline;
    }
    /*h1 heading large*/
    .middle h1 { 
    	color: #Ff9900; 
    	font-size: 18px; 
    	margin-bottom: 10px; 
    	margin-top: 10px;
    	}
    	
    /*h1 heading large*/
    .left h1 {
    	color: #FF9900; 
    	font-size: 18px; 
    	margin-top: 15px;
    	}
    
    /* tijdenlijk uitgeschakeld.
    #clear {
    	display: block;
    	clear: both;
    	width: 100%;
    	height:1px;
    	overflow:hidden;
    }
    
    */
    
    /*footer*/
    .footer {
    	height: 150px;
    	position:relative;
    	background-image: url(img/index_11.jpg);	
    }
    
    .t1 {
    	color: #CCC;
    }
    .mod_navigation .submenu { display:inline; }
    .mod_navigation .level_2 { margin-top:-18px; margin-bottom:-9px; }
    the css you looked at is an old css i renamed it to style_old.css
    the above is the one it should use
    i edit is manuely i use notepad++

    my css is under .../tl_files/bluefreedom2/style.css

  10. #10
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default Re: layout problem

    i think i got it solved after renaming the root style.css to style_old.css and cleaning op my code.

    it works as it is suposed too one little question left .. is there a way to make the "Read more" have a differend color?

  11. #11
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: layout problem

    Quote Originally Posted by byknight
    it works as it is suposed too one little question left .. is there a way to make the "Read more" have a differend color?
    Code:
    p.more a {
    color:#000;
    }
    Of course instead #000 you can use any other color.
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  12. #12
    New user
    Join Date
    08-03-09.
    Posts
    7

    Default Re: layout problem

    Qrczak,

    thanx im gone tinker a little bit with that one and hopefully my site turns out to be fine. anyway thanks for the help!

  13. #13
    User
    Join Date
    06-19-09.
    Location
    Kosice, Slovakia
    Posts
    61

    Default Re: layout problem

    Quote Originally Posted by byknight
    it works as it is suposed too one little question left .. is there a way to make the "Read more" have a differend color?
    well adding
    Code:
    p.more a { color: red; }
    to your style will do IMHO.

    Ah, too late
    S.C.A.R.E

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
  •