Fork me on GitHub

Rapport de message :*
 

Re: Xintervice un div dans le header qui se balade

Titre du sujet : Re: Xintervice un div dans le header qui se balade
par H-hich sur 11/06/2008 19:00:55

Merci pour le coup de main.


Bon evidement j'ai pas reussi :D

J'ai donc ajouté la div top_info dans le header :

<div class="header">

            <!-- 
logo -->
            <
div class="logo">
                <
h1><a href="<{xoAppUrl }>" title="<{$xoops_sitename}>">Xinter<span class="orange">Vices</span></a><sup>Have fun!</sup></h1>
            </
div>
            <!-- 
Banner -->
                <
div class="top_info">    
                    <
div class="top_info_left">
                    <{
$xoops_banner}>
                    </
div>
                    <
div class="top_info_right">
                        <{if !
$xoops_isuser}>
                        <
p><b>Vous n'êtes pas connecté !</b><br />
                        Voulez-vous <a href="<{xoAppUrl user.php}>">vous connecter</a> ou <a href="<{xoAppUrl register.php}>">vous inscrire</a>?</p>
                        <{else}>
                        <!-- menu in recorded mode -->
                        Bienvenue&nbsp;<a href="<{xoAppUrl /user.php}>" title="<{$smarty.const.THEME_PROFILE}>"><{$xoops_uname}>&nbsp;:</a>
                        <br />

                              <!-- for my message box  -->
                        <{xoInboxCount assign=pmcount}>
                        <a href="<{xoAppUrl viewpmsg.php}>">
                        <{if $pmcount}>
                        <!-- if I have messages -->
                        <a href="<{xoAppUrl viewpmsg.php}>">Messages (<{$pmcount}>)</a> |
                        <{else}>
                        <!-- if I do not have a message -->
                        <a href="<{xoAppUrl viewpmsg.php}>">Messages</a> |
                        <{/if}>
                        </a>
                        <!-- end my message box-->
                        <a href="<{xoAppUrl /user.php}>">Mon compte</a> |

                        <!-- additional link if I have rights of administration of module -->
                        <{if $xoops_isadmin}>
                        <a href="<{xoAppUrl /admin.php}>">Admin</a> |
                        <{/if}>
                        <!-- end additional link-->

                        <a href="<{xoAppUrl /user.php op=logout}>">Déconnexion</a> 
                        <{/if}>
                    </div>
                </div>
        </div>


et donc dans le css :

/* header */
.header 
    
height70px;
    
background#fff url(../img/headerbg.gif) repeat-x bottom;
    
color#808080;
    
margin3px 0;
    
padding10px 0 0 0;
}

    .
logo {
        
display:block
        
width:200px;
        
floatleft;    
        }

    .
top_info {
    
floatright;
    
padding5px 0 4px 0;
    
color#808080;
    
}

    .
top_info_left {
    
position:absolute;
    
top:    15px;
    
right:    310px;
    
    }

    .
top_info_right {    
      
positionabsolute;
    
top:20px;
    
right:10px;
    
padding0 20px 0 35px;
    
width250px;
    }



Et les deux div top_info left et right reste collé a droite :s
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

12 Personne(s) en ligne (4 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 12 | Plus ...