Beauty In Design Community
Welcome, Guest
Please Login or Register.
Lost Password?
Joomla Template with multiple areas (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Joomla Template with multiple areas

#134
Laurie Lewis (User)
Fresh Boarder
Posts: 2
graphgraph
Joomla Template with multiple areas 2007/06/26 08:57  
Hi,

I have followed your tutorial on creating an area for the creation of a search box on a Joomla template. I want to place 3 areas inside one area and I can not get them to position correctly across FF and IE7. The code I am using in Dreamweaver is :-

<div id="menubar">menu
<div id="navbar">navbar</div>
</div>
<div id="bottombar">bottom
<div id="advert1">advert1</div>
<div id="advert2">advert2</div>
<div id="searchbox">searchbox</div>
</div>

The relevant CSS I have created for each of the Divs is

#menubar {
width:790px;
height:19px;
margin: 0px;
background-image: url(../images/menubar.gif);
background-repeat: no-repeat;
text-align: left;}

#navbar{
position:absolute;
margin:0px;
margin-left:290px;
height:19px;
width:450px;
background-color:#656565;
}

#bottombar {
width:790px;
height:174px;
margin: 0px;
background-image: url(../images/bottombar.gif);
background-repeat: no-repeat;
text-align: left;
padding: 0px;}

#advert1{
position:absolute;
margin-left:305px;
margin-top:2px;
width: 200px;
height: 160px;
background-color:#000000;
}

#advert2{
position:absolute;
margin-left:535px;
margin-top:2px;
width: 200px;
height: 160px;
background-color:#000000;
}

#searchbox{
position:absolute;
margin-left:20px;
margin-top:130px;
width: 200px;
height: 30px;
background-color:#000000;
}

With the first one- #menubar the grey area #navbar is showing up correctly in IE7 but I can not see it if FF and an extra area has been inserted. This is not showing up in Style master at all.

With the second area #bottombar, it is displaying correctly in IE7 but I think this is wrong. It is showing up in Style Master in the correct place though.

What have I done wrong

Laurie
  The administrator has disabled public write access.
#135
Rick (Admin)
Admin
Posts: 48
graph
Re:Joomla Template with multiple areas 2007/06/27 00:10  
Hi Laurie,
I plugged in your code and CSS to see what you're trying to do...but I'm a little lost, so I'm going to ask for some clarification so I can better help you.

From the looks of the code, you are trying to setup a menu and then another bar for modules perhaps? Not sure...let me know what you are trying to accomplish.

Also, depending on what you're trying to do, the code needs to change alot. Your going to need to float the menu to the left if that's where you want it.

Let me know what you're trying to accomplish and I'll come up with some code for you.
The Attractive Media Experience,
beautyindesign.com
  The administrator has disabled public write access.
#136
Laurie Lewis (User)
Fresh Boarder
Posts: 2
graphgraph
Re:Joomla Template with multiple areas 2007/06/27 13:36  
Hi Rick,

I have done a bit of work and changed it a bit so here is the code I am using for the body of the template.

<body >
<div id="background">
<div id="wrap">
<div id="topsection">
<div id="topbar">
<div id="pathway"></div>
<div id="date"></div>
</div>
<div id="logo"></div>
<div id="menubar">
<div id="navbar"></div>
</div>
<div id="bottombar">
<div id="searcharea">
<div id="search"></div>
</div>
<div id="advert1">
<div id="user1"></div>
</div>
<div id="line"></div>
<div id="advert2">
<div id="user2"></div>
</div>
</div>
</div>
<div id="main_area">
<div id="left_area"></div>
<div id="middle_area"></div>
</div>
<div id="footer">
<div id="left_footer">left footer</div>
<div id="right_footer">right footer</div>
</div>
</div>
</div>
</body>

Now begin from the bottombar div. On the attached images this begins half way down the monitor immediately under the green portion where my menu will go. I have divided the bottombar div up into 4 areas (this solved the problem I was having in the original post of it not lining up correctly with a single background image across the page.

The first area contains the background image of the monitor and an area defined by a div where I will put joomlas search feature. The next is a blank area for user1 the next is an image of a line and finally another blank area for user2. If you look at the two images you will see how FF and IE7 line up the box under the monitor in different areas. Can't figure this one out.

Next problem is the bottom of the page with the footer. It displays correctly in IE7 (which probably means its wrong) and not how I want it in FF. The problem is that in FF it is going over the grey border for the wrap.

This is all the css code.

body {
background-color: #000000;
margin: 0px;
padding:0px;
text-align: center;}

#wrap {
width:790px;
height:auto;
background-color:#ffffff;
border: 4px #666666 solid;
margin-left: auto;
margin-right: auto;
}

#topbar {
width:790px;
height:18px;
margin: 0px;
background-image: url(../images/topbar.gif);
background-repeat: no-repeat;
text-align: left;}

#pathway {
float:left;
width:650px;
height:18px;
}

#date {
float:right;
width:140px;
height:18px;
}

#logo {
width:790px;
height:138px;
margin: 0px;
background-image: url(../images/logo.gif) ;
background-repeat: no-repeat;}

#menubar {
width:790px;
height:19px;
margin: 0px;
background-image: url(../images/menubar.gif);
background-repeat: no-repeat;
text-align: left;}

#navbar{
clear:both;
float:right;
height:19px;
width:470px;
}

#bottombar {
width:790px;
height:164px;
margin: 0px;
}

#searcharea {
float:left;
margin-top:0px;
width:348px;
height:164px;
background-image: url(../images/searcharea.gif);
}

#advert1 {
float:left;
position:relative;
margin-top:0px;
width:206px;
height:164px;
background-color:#ffffff;
}

#line {
float:left;
position:relative;
width:30px;
height:164px;
background-image: url(../images/line.gif);}

#advert2 {
float:left;
position:relative;
width:206px;
height:164px;
background-color:#ffffff;
}

#search {
width:200px;
height:25px;
margin-top:130px;
background-color: #cccc00;
}

#user1 {
width:200px;
height:160px;
margin-top:0px;
}

#user2 {
width:200px;
height:160px;
margin-top:0px;
}


#left_area {
text-align:left;
width:275px;
margin: auto 0px;
float:left;
padding-top:20px;
}

#middle_area {
text-align: left;
margin-left:275px;
width:515px;
}

#footer{
clear:both;
width:790px;
height:50px;
}

#left_footer{
width:275px;
height:50px;
float:left;
padding-top:15px;
text-align: center;
background-color:#8db73b;
}

#right_footer{
width:515px;
height:50px;
float:right;
padding-top:15px;
text-align: center;
background-color:#005faa;
}

Thanks for the help it is much appreciated.

Laurie



File Attachment:
File name: images.zip
File size:28134 bytes


Post edited by: laurie, at: 2007/06/27 13:39
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop
Contact Information