 
        
        
         
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             
                                
                
             Naklajat
                            Naklajat
            
                         
                                 KoRnFlakes
                            KoRnFlakes
            
                         
                                
                
             
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             
                                
                
             Gollum
                            Gollum
            
                        CSS isn't dynamic ... at all. It's completley static.Not true.
 
                                
                
             
                                
                
             Gollum
                            Gollum
            
                         
                                
                
             
                                
                
             Gollum
                            Gollum
            
                        Yeah, but, if you distinct it that way: what if you changed all theIf I make all the link styles identical, then nothing changes. So
styles of links to exactly what a normal link looks like ... you can do
it, and it's still using the CSS definition ... would that still be
dynamic, even using your definition of it being a user interface
element? (I didn't think so either :smile: )
Anyway. For the most part: we agree. However, you should be wellEr..... Why would I want to do this, and what has it got to do with anything else?
aware that the user doesn't want their information leaked :razz: Also, you don't want to allow input fields to allow access to the system the site is running on!
 
Also, why would you ever use js to define link styles? Just becauseYes, I certainly prefer using CSS for exactly that reason (plus less
that'd be "slower". CSS is just a list of definitions, so it's real
fast. JS has to be "ran".
 
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
            
 
                                
                
             Gollum
                            Gollum
            
                        Okay, I've dropped photoshop (and tables) out of the layout equation,Well done for making the switch away from tables :smile:
and the site design I'm currently working on looks neater and more
professional if I do say so myself. The only real problem is that it
shows up differently in IE and Firefox, but since it looks similar its
not really a big problem. The most noticable difference is IE's refusal
to display my logo PNG with #660000 as most of the image with the
correct color. Now I'm trying to figure out how to add dynamic content
like news posts, a list of members with profiles, and a clan
application.
Thanks for all the help guys!
<!--[if gte IE 5.5000]><script type="text/javascript"And here's the script text:
src="pngfix.js"></script><![endif]-->
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title)
? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href)
imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = ""
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent("onload", correctPNG);
 
                                
                
             Naklajat
                            Naklajat
            
                        Well done for making the switch away from tables :smile:I'm just glad I didn't finish the site using tables (sloppily) then
 
                                
                
             Gollum
                            Gollum
            
                         
                                
                
             
                                
                
             Naklajat
                            Naklajat
            
                        html said:To get it to look right I've been using different 'height' 'min-height'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<!--Container div-->
<div id="container">
<!--banner div-->
<div id="banner">
<h3>Tactical Gamers Militia</h3>
</div>
<!--navigation div-->
<div id="nav"> </div>
</div>
</body>
</html>
css said:those are the relevent parts.
body{
margin-top: 0px;
text-align: center;
background-color: #666666;
}
**Main Layout Container**
#container{
margin-left: auto;
margin-right: auto;
text-align: left;
padding: 0px 0px 0px 0px;
width: 933px;
background-color: #333333;
}
**Banner Style**
#banner{
height: 60px;
background-color:#660000;
background-image: url(images/logo_small-red.png);
background-repeat: no-repeat;
background-position: top left;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
border: 1px solid #000000;
}
#banner h3{
margin: 0px;
padding: 0px;
font-size: 20px;
font-weight: normal;
text-align: center;
}
**Navigation Styles**
#nav{
min-height: 1em;
max-height: 20px;
background-color: #333333;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
}
#nav ul{
text-align: right;
margin: 0;
}
#nav li{
list-style: none;
margin: 0;
display: inline;
color: #990000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
#nav li a{
padding: 0em 0.5em 0em 0.75em;
border-left: 6px solid #666666;
}
#nav li a:link{
color: #990000;
text-decoration: none;
}
#nav li a:visited{
color: #990000;
text-decoration: none;
}
#nav li a:hover{
color: #CC0000;
text-decoration: underline;
}
#nav li a:active{
color: #CC0000;
background-color:#999999;
text-decoration: underline;
}
**Content Styles**
#main{
width: 933px;
background-color: #330000;
padding: 5px 10px 0px 10px;
}
.content{
background-color: #333333;
}
 
                                
                
             fraggard
                            fraggard
            
                         
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             
                                
                
             ReNo
                            ReNo
            
                         
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             Gollum
                            Gollum
            
                         
                                
                
             
                                
                
             Gollum
                            Gollum
            
                        The * is the universal selector. This selects every element.font-size: 100%;
- {
line-height: 1em;
margin: 0;
padding: 0;
}
:body {color: red;}This
html>body {color: black;}
<link href="style.css" rel="stylesheet" type="text/css">Those orange bits are the conditional comments. You can read about the conditional comments syntax here: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp
<!--[if gte IE 5]><link href="ie-hacks.css" rel="stylesheet" type="text/css"><![endif]-->
body {color: black;}And here is the content of ie-hacks.css, which only IE will see:
body {color: red !important;}The
 
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             Gollum
                            Gollum
            
                        In any case I've already spent far too much time and effort on theWelcome to the world of web design :smile:
little gray bars next to the navigation links.
 
                                
                
             fraggard
                            fraggard
            
                        BecauseI don't want to sound like a prick, but if Netscape/FF:Gecko is not
Netscape and Firefox are the ones that don't display correctly, and I
have to set a line-height value lower than the font size to get them
to.
 
                                
                
            <?php if (eregi("MSIE",getenv("HTTP_USER_AGENT")) ||Fairly handy stuff, and I'm sure you could change the "Internet Explorer" bit to "Netscape" if necessary.
eregi("Internet Explorer",getenv("HTTP_USER_AGENT"))) { ?><link rel="stylesheet" type="text/css" href="wp-content/themes/underneath-the-sky/style-ie.css"/>
<?php } else { ?>
<link rel="stylesheet" type="text/css" href="wp-content/themes/underneath-the-sky/style.css"/>
<?php } ?>
 
                                
                
             Gollum
                            Gollum
            
                         
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             Underdog
                            Underdog
            
                         
                                
                
             Gollum
                            Gollum
            
                         
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             
                                
                
             Naklajat
                            Naklajat
            
                         
                                
                
             Gollum
                            Gollum
            
                         
                                
                
             Naklajat
                            Naklajat
            
                        #banner{It doesn't display quite right in IE like that, but its close enough and I'm done with it.
height: 5em;
font-size: 12px;
}
#banner h3{
font-size: 20;
}
nav styles
#nav{
height: 0.85em;
}
 
                                
                
             parakeet
                            parakeet