TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,027
  • Total Topics: 21,334
  • Online today: 519
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 309
  • Total: 310
  • lurkalot

Problems with using an HTML box with css/ordered list

Started by mrbean17, March 09, 2008, 07:12:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mrbean17

Hey all,

http://nordoniasoftball.com/forum

Look at that menu that is across the top ... when using an HTML box, it looks like I'm completely loosing my formatting.

It should look like this: http://nordoniasoftball.com/htmlstyle.html

Here is what I am trying to use the HTML box:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../css/mainmenu.css">
</head>

<body>
<ul id="minitabs">
<li><a href="index.html">| Home | </a></li>
<li><a href="fields.html">| Field Info | </a></li>
<li><a href="leauges.html">| Leauges |</a></li>
<li><a href="../Forum" target="_top">| Forums | </a></li>
<li><a href="pictures.html">| Pictures | </a></li>
<li><a href="contact.html">| Contact |</a></li>
</ul>

</body>
</html>


The .css is attached.

Any advice?

Thanks

mrbean17

#1
So it looks like I'm colliding with the main style.css ...

I tried adding my .css stuff to the main style.css at the bottom (go to /* Menu - mini tabs */)


/* Normal, standard links. */
a
{
   color: #808880;
   text-decoration: none;
}
a:hover
{
   color: orange;
}

/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited
{
   text-decoration: none;
}
a.nav:hover
{
   color: orange;
}

/* Tables should show empty cells. */
table
{
   empty-cells: show;
}

/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
   color: #555;
   font-size: small;
   font-family: verdana, sans-serif;
}

/* The main body of the entire forum. */
body
{
   background: #5B774F;
   margin: 0px;
   padding: 0px;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
   color: #404040;
   font-family: verdana, sans-serif;
   background: #f8f9f3;
   border: solid 1px #808080;
}
input, button
{
   font-size: 90%;
}

textarea
{
   font-size: 100%;
   color: #505050;
   font-family: verdana, sans-serif;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
}
input:focus, select:focus{
   background: #fffff3;
   border: solid 1px #ff565A;
}
/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
   font-size: 90%;
   font-weight: normal;
   color: #404040;
   font-family: verdana, sans-serif;
   background: #f8f9f3;
   border: solid 1px #707070;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
   height: 1px;
   border: 0;
   color: #666666;
   background-color: #666666;
}

/* No image should have a border when linked */
a img{
border: 0;
}
/* A quote, perhaps from another post. */
.quote
{
   color: #000000;
   background-color: #D7DAEC;
   border: 1px solid #000000;
   margin: 1px;
   padding: 1px;
   font-size: x-small;
   line-height: 1.4em;
}

/* A code block - maybe even PHP ;). */
.code
{
   color: #000000;
   background-color: #dddddd;
   font-family: "courier new", "times new roman", monospace;
   font-size: x-small;
   line-height: 1.3em;
   /* Put a nice border around it. */
   border: 1px solid #000000;
   margin: 1px auto 1px auto;
   padding: 1px;
   width: 99%;
   /* Don't wrap its contents, and show scrollbars. */
   white-space: nowrap;
   overflow: auto;
   /* Stop after about 24 lines, and just show a scrollbar. */
   max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
   color: #000000;
   text-decoration: none;
   font-style: normal;
   font-weight: bold;
   font-size: x-small;
   line-height: 1.2em;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
   cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
   color: red;
}

/* The main post box - this makes it as wide as possible. */
.editor
{
   width: 96%;
}

/* Highlighted text - such as search results. */
.highlight
{
   background-color: yellow;
   font-weight: bold;
   color: black;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.awindowbg
{
   background: url(images/img/windback.jpg) no-repeat;
}
.awindowbg2
{
   background: url(images/img/windback2.jpg) left bottom no-repeat;
}
.windowbg3, tr.windowbg3 td
{
}
.windowbg a, .windowbg2 a, .windowbg3 a
{
   color: #004000;
}
.windowbg a:hover, .windowbg2 a:hover, .windowbg3 a:hover
{
   color: orange;
}
/* the today container in calendar */
.calendar_today
{
   background-color: #FFFFFF;
}

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td
{
   color: black;
   font-style: normal;
   background-color: #F0F8ED;
}
.titlebg, .titlebg a:link, .titlebg a:visited
{
   font-weight: bold;
   color: black;
   font-style: normal;
}

.titlebg a:hover
{
   color: #404040;
}
/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited
{
   color: black;
   font-style: normal;
   text-decoration: underline;
}

.titlebg2 a:hover
{
   text-decoration: underline;
}

/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
}
.catbg2 , tr.catbg2 td
{
}
.catbg, .catbg2
{
   font-size: 1.3em;
   font-family: arial, helvetica, sans-serif;
   font-weight: bold;
}
.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited
{
   font-family: arial, helvetica, sans-serif;
   font-size: 0.95em;
   text-decoration: none;
}
.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited
{
   text-decoration: none;
}
.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover
{
   color: orange;
}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
   padding: 0px;
}

/* This is used on tables that should just have a border around them. */
.tborder
{
   padding: 1px;
}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext
{
   font-size: x-small;
   font-family: verdana, sans-serif;
}
.middletext
{
   font-size: 90%;
}
.normaltext
{
   font-size: small;
}
.largetext
{
   font-size: large;
}


/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
   width: 100%;
   line-height: 1.3em;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
   width: 100%;
   padding-bottom: 3px;
   line-height: 1.3em;
}

/* Sometimes there will be an error when you post */
.error{
color: red;
}


/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last
{
   background-position: left bottom;
   color: white;
   vertical-align: top;
}
.maintab_back, .maintab_active_back
{
   color: white;
   text-decoration: none;
   font-size:  0.8em;
   vertical-align: top;
   padding: 6px;
   font-family: tahoma, sans-serif;
}

.maintab_first
{
   display: none;
}
.maintab_back
{
   background: #7B976F;
   color: white;
   border: solid 1px #6B875F;
}
.maintab_last
{
   display: none;
}
.maintab_active_first
{
   display: none;
}
.maintab_active_back
{
   background: black;
   color: white;
   border: solid 1px #6B875F;
}
.maintab_active_last
{
   display: none;
}

/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
   color: white;
   text-decoration: none;
}

.maintab_back a:hover, .maintab_active_back a:hover
{
   color: white;
   text-decoration: overline;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
   background-position: left top;
   color: white;
   vertical-align: top;

}
.mirrortab_back, .mirrortab_active_back
{
   color: white;
   text-decoration: none;
   font-size: 0.8em;
   vertical-align: bottom;
   padding: 6px;
   font-family: tahoma, sans-serif;
}

.mirrortab_first
{
   display: none;
}
.mirrortab_back
{
   background: #7B976F;
   color: white;
   border: solid 1px #6B875F;
}
.mirrortab_last
{
   display: none;
}
.mirrortab_active_first
{
   display: none;
}
.mirrortab_active_back
{
   background: black;
   color: white;
   border: solid 1px #6B875F;
}
.mirrortab_active_last
{
   display: none;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
   color: white;
   text-decoration: none;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
   color: white;
   text-decoration: overline;
}
/* main frame */
div#outer{
   margin: auto;
}
/* forum name */
div#outer h1{
   margin: 1em 1em 0 1em;
   color: #d0ffd0;
   padding: 0;
   font-weight: normal;
   font-size: 2em;
}
/* a slogan */
div#outer h2{
   margin: 0 0 1em 2em;
   color: #005000;
   font-size: 1em;
   border: 0;
   padding: 0;
}
/* the main menu */
div#menubox{
   overflow: hidden;
   margin: 0 0 0 20px;
}
div#menubox ul{
   list-style: none;
   margin: 0;
   padding: 0;
}
div#menubox li{
   font-size: 0.85em;
   float: left;
}
div#menubox li#chosen{
   float: left;
}
div#menubox li a{
   display: block;
   padding: 0.5em;
   background: #7B976F;
   color: white;
   border: solid 1px #6B875F;
}

div#menubox li a:hover{
   background: green;
   text-decoration: none;
}
div#menubox li#chosen a{
   display: block;
   padding: 0.5em;
   background: #000;
   color: white;
   border: solid 1px #000;
}

div#content{
   background: white;
   overflow: auto;
   height: 100%;
   width: 100%;
}
div#timebox{
   height: 10px;
   text-align: right;
   font-size: 0.8em;
   padding: 5px 20px 0 0;
   color: black;
}
div#leftbox{
   border-bottom: solid 1px #d0d0d0;
   background: #e8eae8;
   padding: 20px;
   color: #505050;
   font-size: 0.95em;
}
div#leftbox ul{
   list-style: none;
   margin: 0;
   padding: 0;
}
div#leftbox ul li a{
   padding: 0px 2px 0px 2px;
   border-left: 4px solid #e8eae8;
}
div#leftbox ul li a:hover{
   border-left: 4px solid orange;
}
div#mainbox, div#timebox{
   padding-left: 20px;
}
div#mainbox{
   margin-right: 20px;
}
div#copyrightbox{
   background: url(images/img/bottom.jpg) white bottom repeat-x;
   padding: 5px 20px 20px 20px;
   color: #505050;
   font-size: 0.95em;
   height: 100px;
   text-align: right;
}
div#navigation{
   color: #303030;
   padding: 1em;
   font-family: arial, helvetica, sans-serif;
   font-weight: bold;
   font-size: 0.9em;
}
div#navigation a{
   color: #303030;
}
div#navigation a:hover{
   color: orange;
}
ul.menus{
   list-style: none;
   margin: 0;
   padding: 0;
}
ul.menus li{
   float: left;
}
ul.menus li a{
   display: block;
   padding: 0.5em;
   background: #7B976F;
   color: white;
   border: solid 1px #6B875F;
}
ul.menus li a:hover{
   background: green;
   text-decoration: none;
}

div#container3{
   padding: 0.5em;
}
ul.simplelist{
   list-style: none;
   margin: auto;
   padding: 0;
   border-bottom: dotted 1px #d0d0d0;
   border-top: dotted 1px #d0d0d0;
   overflow: auto;
   width: 100%;
   text-align: center;
}
ul.simplelist li{
   float: left;
   font-size: 0.9em;
}
ul.simplelist li a{
   display: block;
   color: black;
   padding: 0.5em 2em 0.5em 2em;
   font-size: 0.9em;
}
ul.simplelist li a:hover{
   background: orange;
   color: white;
   text-decoration: none;
}
.container{
   overflow: hidden;
   background: #6B875F;
   margin-left: 2px;
   padding: 0.3em 1em 0.2em 0.5em;
   font-size: 0.9em;
   height: 100%;
}
.container ul.menus li a:hover{
   background: black;
   text-decoration: none;
   color: white;
}

.container, .container a, .container div.middletext a{
   color: white;
}
.container div.middletext a:hover{
   color: orange;
}
.container2{
   background: #F2F4F3;
   margin: 0 0 0 2px;
   padding: 5px;
}
.container2 tr.catbg3 td{
}
.container2 tr.smalltext td{
   font-size: .9em;
   padding: 5px;
}
.aroundbox{
}
.tablebackground{
}
.tablebackground td{
   background: #f5f5f5;
}
.container3{
   overflow: hidden;
   background: #90565A;
   margin-left: 2px;
   padding: 0.3em 1em 0 0.5em;
   font-size: 0.9em;
   height: 100%;
}
.container3 ul.menus li a{
   background: #a0666A;
   border-color: #90565A;
}

.container3 ul.menus li a:hover{
   background: black;
   text-decoration: none;
   color: white;
}

.container3, .container3 div.middletext a{
   color: white;
}
.container3 div.middletext a:hover{
   color: orange;
}
#font-sizer{
   float: right;
   text-align: right;
   color: white;
   font: x-small Tahoma;
   margin-right: 1em;
   margin-top: 1em;
}
#font-sizer a{
   color: white;
}
#font-sizer a:hover{
   color: orange;
}
img.stylecolor{
   border: solid 1px black;
   width: 1em;
   height: 1em;
   margin: 5px 0 0 4px;
}
div#shrink{
   position: absolute;
   top: 0;
   left: 0px;
   z-index: 5;
}

/* Menu - mini tabs */
ul#minitabs
{
   list-style: none;margin: 0;padding: 7px 0;
   border-bottom: 1px solid #CCC;font-weight: bold;
   text-align: center;white-space: nowrap
}

ul#minitabs li
{
   display: inline;margin: 0 2px
}

ul#minitabs a
{
   text-decoration: none;padding: 0 0 3px;
   border-bottom: 4px solid #FFF;color: #999
}

ul#minitabs a#current
{
   border-color: #F60;color: #06F
}

ul#minitabs a:hover
{
   border-color: #070;color: #666
}


And from my HTML box, I call it as such:


<ul id="minitabs">
<li><a href="index.html">| Home | </a></li>
<li><a href="fields.html">| Field Info | </a></li>
<li><a href="leauges.html">| Leauges |</a></li>
<li><a href="../Forum" target="_top">| Forums | </a></li>
<li><a href="pictures.html">| Pictures | </a></li>
<li><a href="contact.html">| Contact |</a></li>
</ul>


Yet it still is not displaying properly ... why? I am calling the <ul id="minitabs">, so why am I not getting my style sheet settings?

Thanks

mrbean17

I can't win ...

Now I tried saving the css declaration to another file and calling it from index.template.php and I'm still not getting anywhere ...

I saved the above css code to mainmenu.css and added into the template at this point:


   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/mainmenu.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';


Thanks

IchBin

The menu looks fine to me. Did you fix it or something?

mrbean17

Yeah, I had to muck around a bit ... the ordered list concept didn't work as it should have in normal html, basically I changed it to use one list as such:


<ul id="minitabs">
    <li><a href="../index.html">| Home |</a> <a href="">| Field Info |</a> <a href="">| Statistics |</a> <a href="/forum">| Forums |</a> <a href="">| Pictures |</a> <a href="">| Help |</a></li>
</ul>


Thanks for looking into it though.

G6Cad


This website is proudly hosted on Crocweb Cloud Website Hosting.