Help - Search - Members - Calendar
Full Version: Band Page Css Trouble....again...
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
k.digennaro
Hey guys,
Well I thought I had CSS down, but not quite yet. I defenitely have learned a lot. I created a page for my band a while page using only html, since I used only html it distorted the image when it was on any other sized monitor, or in a different browser. Since then I have been introduced to CSS and now I'm trying to convert my image into a CSS style sheet, and a index.html. I thought that I would start with the header. Since this web site in my opinion really has two headers. (see example image below). I did the simple one, then decided to try the more complex one. (Although the simple one isn't even complete.).
For the first header (the pink bar at the top) I created an image of just the color with the correct width and height. I figured I'd come back to the text links because i think i know how to do those.

For the second header, the one with the band name, I created an image of the background, and then an image of the button. I was trying to get it to work out in CSS but didnt get it right. I'm not sure why it isn't working, it makes sense to me. Please let me know what you think is the problem.

CSS
CODE
mg {
  border: 0px
}

#content {
  height: 100%;
    min-height: 100%;
    text-align: left;
    
}

#content,
#width {
  /* max-width hack for IE since it doesn't understand the valid css property*/
    width: expression(document.body.cliendWidth > 1024 ? "1024px" : "100%");
    }
    
    #content[id],
#width[id] {
  width: 100%;
  height: auto;

}

#header {
  position: relative;
  height: 21px;
  background: url(images/header.gif) repeat;
  border: solid 1px #000000;
}
#button {
  position: absolute;
  top: -52px;
  left: 436px;
}
#button1 {
  position: absolute;
  top: -52px;
  left: 519px;
}
#button2 {
  position: absolute;
  top: -52px;
  left: 602px;
}
#button3 {
  position: absolute;
  top: -52px;
  left: 685px;
}


HTML
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Nascent Descent</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8 />
<link rel="stylesheet" href="style.css" type="text/css" />

<div id="content">

<div id="header">

     <div id="button">
           <a href="index.html"><img src="Images/button.gif" id="Home" alt="Home" align="top" border="0" width="81px" height="27px"></a>
         </div>
        
         <div id="button1">
           <a href="index.html"><img src="Images/button.gif" id="Home" alt="Home" align="top" border="0" width="81px" height="27px"></a>
         </div>
        
         <div id="button2">
           <a href="index.html"><img src="Images/button.gif" id="Home" alt="Home" align="top" border="0" width="81px" height="27px"></a>
         </div>
        
         <div id="button3">
           <a href="index.html"><img src="Images/button.gif" id="Home" alt="Home" align="top" border="0" width="81px" height="27px"></a>
         </div>
        
         <div id="title">
           Nascent Descent
       </div>
</div>
        
<div id="footer">
Copyright 2008 K.DiGennaro
</div>

</div>
</div>
</body>
</html>


Example of webpage design.


Thanks again,
Kevin
Paradoks
Well.. I see a problem, The site itself, for a person like you, that doesnt know what to do i would say is pointless to code, the left and the right side arent similar, you have thigns that just dont mesh. Coding this in valid XHTML and CSS would be hard for you, I know it was hard for me when i started, but i suggest making a Coder friendly design for a person as urself, or downlod a freetemplate and learn how they did it.
MrTouz
The color of left side and right side (red to black) is not much of a problem, actually its not a problem at all, just use a div tag and do a bg repeat... really easy ..

The botton positions are ... well the way i do they are wrong. I wouldnt make each button a specific place since in each resolution they will be placed differently.

The site it self is hard to code, that i agree, you have too different areas and specific areas to code. I wouldnt code it, even if i was paid. I mean there is no need of making a hard site like that and work hard on it and something more simple can look better.
k.digennaro
QUOTE(Paradoks @ May 7 2008, 04:02 AM) *
Well.. I see a problem, The site itself, for a person like you, that doesnt know what to do i would say is pointless to code, the left and the right side arent similar, you have thigns that just dont mesh. Coding this in valid XHTML and CSS would be hard for you, I know it was hard for me when i started, but i suggest making a Coder friendly design for a person as urself, or downlod a freetemplate and learn how they did it.

okay, well ive been disecting templates to learn how they work.

what do you mean by a coder friendly design? something i can do with like 1 row and a column?

QUOTE(MrTouz @ May 7 2008, 08:41 PM) *
The color of left side and right side (red to black) is not much of a problem, actually its not a problem at all, just use a div tag and do a bg repeat... really easy ..

The botton positions are ... well the way i do they are wrong. I wouldnt make each button a specific place since in each resolution they will be placed differently.

The site it self is hard to code, that i agree, you have too different areas and specific areas to code. I wouldnt code it, even if i was paid. I mean there is no need of making a hard site like that and work hard on it and something more simple can look better.

Thanks for the reply, I guess honestly I didnt realize it was that difficult to code until i tried to do it in css. Making it work in html is easy. I think Ill re make the page, maybe a similar color scheme but just make it more workable.

Thanks guys,
Kevin
MrTouz
QUOTE
what do you mean by a coder friendly design? something i can do with like 1 row and a column?


well see the white lines on your content area (the left and right side) well this is not coder friendly design, same on the top on your both headers... its harder to code...
k.digennaro
QUOTE(MrTouz @ May 8 2008, 05:07 PM) *
well see the white lines on your content area (the left and right side) well this is not coder friendly design, same on the top on your both headers... its harder to code...

hmmm i see what you mean, but for instance the metal texture on the right and left, couldnt i just make it the background image? and build on top of that instead of just a colored background? Thats wat i did when i coded it in html
Andrew
The white lines aren't a problem, In my eye this isn't impossible to code, but I agree I wouldn't take much time doing so. Or I would try to simplify it. And the white lines, just make a div with a border-left and border-right (about 5px solid #fff) and it should create something similar, or just use images instead of colored lines.

And personally I would put the navigation links in the squares at the top above the header image, (in the squares that are on the right) because I personally don't like the main navigation next to the content. i would use that area as a side bar for different information.
k.digennaro
QUOTE(Trippin7464 @ May 9 2008, 09:01 AM) *
The white lines aren't a problem, In my eye this isn't impossible to code, but I agree I wouldn't take much time doing so. Or I would try to simplify it. And the white lines, just make a div with a border-left and border-right (about 5px solid #fff) and it should create something similar, or just use images instead of colored lines.

And personally I would put the navigation links in the squares at the top above the header image, (in the squares that are on the right) because I personally don't like the main navigation next to the content. i would use that area as a side bar for different information.

Thanks for the info trip, i think im going to redesign this one, maybe a similar idea, but ill make it easier for me to code
MrTouz
QUOTE
And personally I would put the navigation links in the squares at the top above the header image, (in the squares that are on the right) because I personally don't like the main navigation next to the content. i would use that area as a side bar for different information.


Agreed, plus iof you add some good css you can get some cool rolovers
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.