Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-16-2011, 04:00 PM   PM User | #1
3happypenguins
New to the CF scene

 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
3happypenguins is an unknown quantity at this point
Angry Autoheight plugin for div tags: PROBLEM!

I am using iframe for my menus (I don't want to hear your lecturing about iframes), and I previously just used my css file to set the px on my iframe heights, but I've been having cross-browser issues with that. For some people, the menus are cut off, or appear to be "floating." I decided to implement a jquery script and an auto height plugin in javascript. It "worked" (kind of), except that the part of the menu that is in a div tag completely disappears. It's like the plugin (or something) doesn't recognize it.

When I remove the div tag (plain text), or when I use my <div id="text"> attribute (I have #text in my css file), it works just fine. I don't understand why!!! The css that I want to use for the menu is what makes it horizontal. Could that be the culprit?

Here is my CSS for the menu (not my main CSS file):

Code:
body 
{
    background: #eeeff4;
    margin: 15px;
}

#text 
{
    font-family: Arial, Georgia, Helvetica, sans-serif;
    font-size: 10pt;
    text-align: justify;
    color: #26393D;
    cursor: default;
}

h1,h2,h3,h4 {
	margin: 0 auto;
	text-align: center;
}

h1 {
	font-size: 36px;
}

h2 {
	font-size: 28px;
}

h4 {
	font-size: 18px;
	text-transform: capitalize;
}

.frontpage {
	text-align:center;
}

a {
	color: #638489;
	text-decoration: none;
}

a:hover {
	color: #b22d29;
	text-decoration: none;
}

#tabs {
    float: left;
    font-family: Arial, Georgia, Helvetica, sans-serif;
    font-weight: bold;
    font-variant: small-caps;
    font-size: 11pt;
    background: #eeeff4;
    z-index: 1000;
    position: relative;
}

#tabs * {
    margin: 0px;
    padding: 0px;
}

#tabs ul {
    clear: left;
    float: left;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

#tabs ul li {
   background: url(images/tableft.png) top left no-repeat;
   background-color: #FFFFFF;
   display: block;
   float: left;
   list-style: none;
   margin: 15px 5px 0px 5px;
   padding: 0px;
   position: relative;
}

#tabs ul li a {
    background: url(images/tabright.png) top right no-repeat;
    display: block;
    margin: 0px 0px 0px 0px;
    padding: 3px 20px 0px;
    font-weight: bold;
    color: #27393d;
    text-decoration: none;
    line-height: 1.3em;
}

#tabs ul li:hover	{
    background: url(images/tableft.png) top left no-repeat;
	background-color: #27393d;
}

#tabs ul li a:hover	{
    background: url(images/tabright.png) top right no-repeat;
    color: #FFFFFF;
}

#tabs ul li:hover a 
{
   background: url(images/tableft.png) top left no-repeat;
   background-color: #27393d;
   color: #FFFFFF;
}

#tabs ul li:hover a 
{
   background-color: #27393d;
   background: url(images/tabright.png) top right no-repeat;
   color: #FFFFFF;
}
3happypenguins is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:15 PM.


Advertisement
Log in to turn off these ads.