PDA

View Full Version : BioBox too big on home page


Nikon_Mario
May-02-2008, 10:18 AM
I've been reading the slide thread and have used lots of info from there to create a slide show and bio text (combined together) on my home page. I really like it as it gives a neat little slide show while still allowing me to have some text about the site on the home page. Thanks for that! :clap

Now to my problem. I used the bio box to contain the text and the slide show. It works great except for the fact that the bio box is far longer than it needs to be. How can I bring the bottom of the bio box up so that it is just below the final bit of text in my home page?

Also - a little thing, how do I get my menu background color to be the same grey as the biobox?

thanks in advance,
Mario

Nikon_Mario
May-02-2008, 05:32 PM
I've been reading the slide thread and have used lots of info from there to create a slide show and bio text (combined together) on my home page. I really like it as it gives a neat little slide show while still allowing me to have some text about the site on the home page. Thanks for that! :clap

Now to my problem. I used the bio box to contain the text and the slide show. It works great except for the fact that the bio box is far longer than it needs to be. How can I bring the bottom of the bio box up so that it is just below the final bit of text in my home page?

Also - a little thing, how do I get my menu background color to be the same grey as the biobox?

thanks in advance,
Mario

bump. Anyone able to help?

Allen
May-03-2008, 07:03 AM
I've been reading the slide thread and have used lots of info from there to create a slide show and bio text (combined together) on my home page. I really like it as it gives a neat little slide show while still allowing me to have some text about the site on the home page. Thanks for that! :clap

Now to my problem. I used the bio box to contain the text and the slide show. It works great except for the fact that the bio box is far longer than it needs to be. How can I bring the bottom of the bio box up so that it is just below the final bit of text in my home page?

Also - a little thing, how do I get my menu background color to be the same grey as the biobox?

thanks in advance,
Mario
Change the background colors of nav. Here's the whole thing, too many
changes to list individually.


/* CSS Section */

/* style the outer div to give it width */
.menu {
margin: auto;
padding:10px 0px 15px 0px;
position:relative; /*Make the container moveable*/
width:750px; /*Main bar total width*/
font-size:0.85em;
padding-bottom:5px; /*Padding between the bottom of your mainbar and the rest of your page */
z-index: 99;
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.menu ul ul {
width:187px; /* Cell size. Divide the main width (750px) by the number of cells you need */
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown

menu positon */
.menu li {
float:left;
width:187px; /* Cell size. Divide the main width (750px) by the number of cells you need */
position:relative;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:11px;
text-decoration:none;
color:#fff;
width:100; /* Defines the main box dimensions. */
height:30px; /*How tall your cells are I CHANGED FROM 30 */
border:1px solid #fff;
border-width:1px 1px 0 0;
background:#444;
padding-left:10px;
line-height:29px; /*Adjust this to vertically center your text in each cell. Should be about the same

as height. I CHANGED FROM 29 */
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:125px;
w\idth:139px;
}

/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#444;
}
/* style the second level hover */
.menu ul ul a.drop:hover{
background:#ccc;
}
.menu ul ul :hover > a.drop {
background:#ccc;
}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {
background:#444;
}
/* style the third level hover */
.menu ul ul ul a:hover {
background:#ccc;
}
.menu ul ul ul :hover > a {
background:#ccc;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:31px;
left:0;
width:187px; /* Size of the daughter cells - I changed to 187*/
}
/* another hack for IE5.5 */
* html .menu ul ul {
top:30px;
t\op:31px; /* IE gap between main bar and the dropdown items */
}


/* position the third level flyout menu */
.menu ul ul ul{
left:125px;
top:0;
width:125px;
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-125px;
}

/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0;}

/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
background:#444;
color:#fff;
height:auto;
line-height:1em;
padding:5px 10px;
width:166px
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:125px;
w\idth:129px;
}


/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
color:#000;
background:#ccc;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#000;
background:#ccc;
}

/* make the second level visible when hover on first level list OR link */
.menu ul :hover ul{
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul {
visibility:visible;
}

/* End Navbar Code */

You moved everything up to position in the biobox so add the
margin-bottom to such up the bottom of the box.:D

#myBioText2 {
position: relative;
text-align: left;
top: -175px;
width: 720px;
margin-bottom: -160px;
}

Nikon_Mario
May-03-2008, 09:42 AM
Change the background colors of nav. Here's the whole thing, too many
changes to list individually.


/* CSS Section */

/* style the outer div to give it width */
.menu {
margin: auto;
padding:10px 0px 15px 0px;
position:relative; /*Make the container moveable*/
width:750px; /*Main bar total width*/
font-size:0.85em;
padding-bottom:5px; /*Padding between the bottom of your mainbar and the rest of your page */
z-index: 99;
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;
}
.menu ul ul {
width:187px; /* Cell size. Divide the main width (750px) by the number of cells you need */
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown

menu positon */
.menu li {
float:left;
width:187px; /* Cell size. Divide the main width (750px) by the number of cells you need */
position:relative;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:11px;
text-decoration:none;
color:#fff;
width:100; /* Defines the main box dimensions. */
height:30px; /*How tall your cells are I CHANGED FROM 30 */
border:1px solid #fff;
border-width:1px 1px 0 0;
background:#444;
padding-left:10px;
line-height:29px; /*Adjust this to vertically center your text in each cell. Should be about the same

as height. I CHANGED FROM 29 */
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {
width:125px;
w\idth:139px;
}

/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#444;
}
/* style the second level hover */
.menu ul ul a.drop:hover{
background:#ccc;
}
.menu ul ul :hover > a.drop {
background:#ccc;
}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {
background:#444;
}
/* style the third level hover */
.menu ul ul ul a:hover {
background:#ccc;
}
.menu ul ul ul :hover > a {
background:#ccc;
}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
height:0;
top:31px;
left:0;
width:187px; /* Size of the daughter cells - I changed to 187*/
}
/* another hack for IE5.5 */
* html .menu ul ul {
top:30px;
t\op:31px; /* IE gap between main bar and the dropdown items */
}


/* position the third level flyout menu */
.menu ul ul ul{
left:125px;
top:0;
width:125px;
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-125px;
}

/* style the table so that it takes no ppart in the layout - required for IE to work */
.menu table {position:absolute; top:0; left:0;}

/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
background:#444;
color:#fff;
height:auto;
line-height:1em;
padding:5px 10px;
width:166px
/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:125px;
w\idth:129px;
}


/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
color:#000;
background:#ccc;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#000;
background:#ccc;
}

/* make the second level visible when hover on first level list OR link */
.menu ul :hover ul{
visibility:visible;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
visibility:hidden;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
visibility:hidden;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{
visibility:visible;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul {
visibility:visible;
}

/* End Navbar Code */

You moved everything up to position in the biobox so add the
margin-bottom to such up the bottom of the box.:D

#myBioText2 {
position: relative;
text-align: left;
top: -175px;
width: 720px;
margin-bottom: -160px;
}

Thanks, Allen! That got everything done and it looks great! I appreciate the time you guys put into solving the problem. :bow