- Posts: 6745
- Thank you received: 716
adding a mod directly below the main menu
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago - 14 years 3 months ago #2438
by trey-braid
adding a mod directly below the main menu was created by trey-braid
milos the new module is called " gamecenter "
i added this styling to the layout.css:
.gamecenter {
position:relative;
top:-35px;
}
i then added this to the index.php right before this: <?php if ($showuser1 or $showuser2) { ?>
<div class="gamecenter_wrap">
<div class="gamecenter">
<div style="padding-left:30px; padding-top:30px; width:980px; height:100px; float:left"><jdoc:include type="modules" name="gamecenter" style="xhtml" />
<div class="clr"></div>
</div>
</div>
did i do this right? right now i was able to get it positioned below the menu by adding the padding-top; but, as you can see there is to much space below the new mod and the gallery and news mod below which you helped me layout last week....
the dimensions of the module are: 980 / 100
thanks
trey
i added this styling to the layout.css:
.gamecenter {
position:relative;
top:-35px;
}
i then added this to the index.php right before this: <?php if ($showuser1 or $showuser2) { ?>
<div class="gamecenter_wrap">
<div class="gamecenter">
<div style="padding-left:30px; padding-top:30px; width:980px; height:100px; float:left"><jdoc:include type="modules" name="gamecenter" style="xhtml" />
<div class="clr"></div>
</div>
</div>
did i do this right? right now i was able to get it positioned below the menu by adding the padding-top; but, as you can see there is to much space below the new mod and the gallery and news mod below which you helped me layout last week....
the dimensions of the module are: 980 / 100
thanks
trey
Last edit: 14 years 3 months ago by trey-braid.
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago #2440
by trey-braid
Replied by trey-braid on topic Re: adding a mod directly below the main menu
i made some adjustments to the index.php and it looks like this took care of the issue:
right?
<div class="gamecenter_wrap">
<div class="gamecenter">
<div style="padding-left:20px; padding-top:5px; padding-bottom: 5px; width:980px; height:100px; float:left"><jdoc:include type="modules" name="gamecenter" style="xhtml" />
<div class="clr"></div>
</div>
</div>
i made adjustments to padding for top and bottom and it looks like that took care of the issue...
thanks
trey
right?
<div class="gamecenter_wrap">
<div class="gamecenter">
<div style="padding-left:20px; padding-top:5px; padding-bottom: 5px; width:980px; height:100px; float:left"><jdoc:include type="modules" name="gamecenter" style="xhtml" />
<div class="clr"></div>
</div>
</div>
i made adjustments to padding for top and bottom and it looks like that took care of the issue...
thanks
trey
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
14 years 3 months ago #2441
by milos
Replied by milos on topic Re: adding a mod directly below the main menu
The code looks correct to me.
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago #2448
by trey-braid
Replied by trey-braid on topic Re: adding a mod directly below the main menu
thanks milos
Please Log in to join the conversation.
Time to create page: 0.160 seconds