Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Menu (non-solpart) styling issueMenu (non-solpart) styling issue
Previous
 
Next
New Post
3/19/2009 10:20 AM
 

Below are screenshots of two menus, the first one is the customers site on another platform and the second one is from the skin I am creating in DNN to make both sites appear seamless when going to one page from another. The problem I am having is replicating their rollover state using too different font sizes in the li. The menu I am using in the skin is not Solpart, it is purely a tableless CSS/div configuration. Below are the classes I used to style it. How can I get my rollover state to be consistent from big font to smaller font? Thanks in advance.

 

Non-DNN site that I am trying to mimick

My Skin

 

/*New Skin Header classes*/

 

#header {  

position: relative;

font: 14px Arial, sans-serif;

padding: 4px 14px; 

}

 

#a.header {  

position: relative;

font: 14px Arial, sans-serif;

padding: 0px 14px;

text-decoration: none;

}

 

#a.header:hover {  

position: relative;

font: 14px Arial, sans-serif;

padding: 0px 14px;

text-decoration: underline;

}

 

#header #logo {

padding: 5px 0px;

}

    

#header #logo h1, #header #logo p {

display: none; 

}

 

#header ul#account_links {

font-size: 93%;

position: absolute;

top: 27px;

right: 15px;

_right: 30px;

list-style-type: none;

}

   

#header ul#account_links li {

display: inline;

padding: 0px 5px;

color: #000;

}     

 

#header ul#account_links li input.text_field {

width: 100px;

border: 1px solid #e5e5e5;

padding: 1px 2px;

}  

 

#header ul#account_links li input.submit {

vertical-align: top;

 

#header ul#account_links li.last {

padding: 0px;

}

 

#header ul#main_nav {

height: 30px;

margin: 0px;

list-style-type: none;

padding: 0px;

}

 

#header ul#main_nav li {

float: left;

margin-right: 8px;

background: url(header/main_nav_button_right.gif) top right;

}

  

#header ul#main_nav li a {

float: left;

height: 30px;

padding: 0px 10px;

background: url(header/main_nav_button_left.gif) top left no-repeat;

color: #fff;

overflow: hidden;

}

     

#header ul#main_nav li a span {

line-height: 30px;

}

         

#header ul#main_nav li a span strong {

font-size: 129%;

}

  

#header ul#main_nav li.active {

background-image: url(header/main_nav_button_active_right.gif);

}

      

#header ul#main_nav li.active a {

background-image: url(header/main_nav_button_active_left.gif);

}

 

#header ul#main_nav li.home a span {

display: block;

background: url(header/icon_house.gif) left center no-repeat;

width: 16px;

height: 30px;

cursor: hand; }  

  

#header ul#main_nav li.home a span strong {

display: none;

 

#header ul#main_nav li.home a:hover span {

background-position: right center;

}

 

#header ul#main_nav li.people_pictures span,     #header ul#main_nav li.about span,     #header ul#main_nav li.blog span {

line-height: 34px;

}

 

#header #sub_nav {

height: 6px;

_font-size: 0px;

background-color: #6C1F7E;

margin-top:0;

margin-left:0;

margin-bottom: 10px;

padding: 0px 0px;

list-style-type: none;

width: 100%;

}

 

#header ul#sub_nav {

position: relative;

height: 30px;

_font-size: 14px;

list-style-type: none;

padding: 0px;

width: 100%;

}

  

#header ul#sub_nav li {

float: left;

margin-left: -1px;

}  

 

#header ul#sub_nav li a {

float: left;

height: 30px;

color: #fff;

background: url(header/sub_nav_div.gif) center right no-repeat;

padding: 0px 10px; }  

     

#header ul#sub_nav li a span {

line-height: 30px;

}

     

#header ul#sub_nav li a.active {

position: relative;

background: #e2cee6 url(header/sub_nav_active.gif) center bottom no-repeat !important;

color: #6C1F7E;

margin-top: 1px;

margin-bottom: -9px;

height: 37px;

}

   

#header ul#sub_nav li.first {

margin: 0;

}

 

#header ul#sub_nav li.last a {

background: none;

}

 
New Post
3/19/2009 11:40 AM
 

 This is the code I have inserted in the skin's .aspx file as well..

<!--begin header-->

<div Halign="left" id='header'>

  <div id="logo">

    <img alt="Logo" src="/Portals/_default/Skins/Kaboom/header/logo.png" />    <h1>KaBOOM!</h1>

    <p>it starts with a playground</p>

  </div>

  <ul id="account_links">

    <li><a href="#">My profile</a></li>

    <!--<li><a href="/join">Join</a></li>

    <li><a href="/login">Login</a></li>-->

    <li><a href="http://kaboom.org/Home/FAQ/tabid/856/Default.aspx">FAQ</a></li>    

    <li><a href="http://kaboom.org/Donatenbsp/tabid/78/Default.aspx">Donate</a></li>

    <li class="last">

      <input class="text_field" id="" name="" type="text" value="" />

      <input class="submit" src="/Portals/_default/Skins/Kaboom/header/search_button.gif" type="image" />

    </li>

  </ul>

  <ul id="main_nav">

    <li class='home'>      <a href="http://kaboom.org"><span><strong>home</strong></span></a>

    </li>

    <li class="find_playspace">

      <a href="/" class="active"><span class="header"><strong>find</strong> a playspace</span></a>

    </li>

    <li class="active build_playspace">

      <a href="http://kaboom.org/BuildaPlayspace/tabid/57/Default.aspx"><span><strong>build</strong> a playspace</span></a>    </li>

    <li class="help_save_play">

      <a href="http://kaboom.org/CampaignforPlay/tabid/83/Default.aspx"><span><strong>help</strong> save play</span></a>

    </li>

    <li class="people_pictures">

      <a href="http://connect.kaboom.org"><span>people + pictures</span></a>

    </li>    <li class="about">

      <a href="http://kaboom.org/AboutKaBOOM/tabid/54/Default.aspx"><span>about KaBOOM!</span></a>

    </li>

    <li class="blog">

      <a href="http://connect.kaboom.org/?page=articles/default"><span>blog</span></a>

    </li>

  </ul>

  <div id="sub_nav">    <!--<li class='first'>

      <a href="/"><span>search map</span></a>

    </li>

    <li>

      <a href="/playspaces/new"><span>add a playspace</span></a>

    </li>

    <li>

      <a href="/widgets" class="active"><span>widgets</span></a>    </li>

    <li class='last'>

      <a href="/contests"><span>100,000 playspaces in 100 days</span></a>

    </li>-->

  </div>

</div>

<!--end header-->

 
New Post
3/19/2009 11:59 AM
 

I guess the exmaple is adding a border below the link, not the text-decoration of the text, since that scales with the font-size.

 

Link this: Example of a link

 

a.example:hover{
border-bottom:solid 1px #F00;
text-decoration:none;
}

 
New Post
3/19/2009 12:33 PM
 

Timo Breumelhof wrote

I guess the exmaple is adding a border below the link, not the text-decoration of the text, since that scales with the font-size.

 

Link this: Example of a link

 

a.example:hover{
border-bottom:solid 1px #F00;
text-decoration:none;
}

 

Thanks, I am giving this a try but it is underlining the tab instead of the text, so I am going to play with the hover class in the skin and default.css to see if that fixes it.

 
New Post
3/20/2009 4:34 PM
 

  Anybody have any idea how to make this work. when I use the border trick it underlines the bottom of the tab image, so I removed it. but the link to the skin is. HELP! I am running out of time... :-(

 

http://kaboom-staging.ibelongnetworks.com/

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Menu (non-solpart) styling issueMenu (non-solpart) styling issue


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out