|
| |
|
|
Nicole
Posts: 2830 Joined: 9/15/2004 From: Nambucca / Kempsey, Australia Status: offline
|
Layout with CSS - 12/28/2004 16:04:47
Hi, I'm using Style Master 3.5 demo version and am trying from scratch to lay out one of my existing templates to look exactly the same as the one created in Frontpage. The extisting Frontpage template - Consultancy Site The Style Master CSS site - Consultancy Site (This may change as i work with this page) The existing template was created entirely using tables to control layout and i have a few nested tables in there too. The existing template looks good on my computer across most browsers, but i believe there's severe accessibility issues in using tables for layout. As you can probably tell i'm a complete novice with CSS, this being the first decent attempt at working with it, but i'd like to know whether tables can be used in conjunction with layout using CSS, if not then can someone please help with advice on how to go about making the CSS version of this template look the same as the existing template? Thanks Nicole
_____________________________
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Layout with CSS - 12/28/2004 16:08:55
there is nothing incompatable about tables and css. in fact, css rules can be used to define table cells
_____________________________
Dan
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Layout with CSS - 12/28/2004 16:16:30
my knowledge of css is greater than my practice of it - does that make sense? ive read and understand it well, just havnet used it enough for it to be second nature. here is what I would recommend to you nicole - you create excellent designs - dont throw the baby out with the bath water - stick with tables which you employ nicely and begin by using css for font control and gradually add more functionality wit it as you get confident with it.
_____________________________
Dan
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Layout with CSS - 12/28/2004 16:23:31
i guess i need to say one more thing - it seems to me that, by starting css with positioning to replace tables, you are starting with the harder stuff. its always best to start something new with the easiest first! look at this section of your code form the "good page". <ul type="square">
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Surveillance</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Investigation</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Action Plans</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Media Exposure</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Business Plans</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Financial Solutions</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Personal Service</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Mediation</font></li>
<li>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2" color="#525252">Rural Advice</font></li>
</ul>
</td>
<td width="52%" align="left" valign="top">
<font face="Arial" style="font-size: 9pt; letter-spacing: 0; font-weight: 700" color="#525252">
Welcome to This Website</font><p>
<font face="Arial" style="font-size: 9pt" color="#525252">
<img border="1" src="wheat4.jpg" align="right" width="100" height="100">General text about the
business , it's operator and clients successes. General text about the
business , it's operator and clients successes. General text about the
business , it's operator and clients successes. General text about the
business , it's operator and clients successes. </font></p>
<p>
<font face="Arial" style="font-size: 9pt" color="#525252">
<img border="1" src="scales.jpg" align="left" width="100" height="100">General text about the
business , it's operator and clients successes. General text about the
business , it's operator and clients successes. General text about the
business , it's operator and clients successes. General text about the
business , it's operator and clients successes. General text about the
business , <img border="1" src="cow.jpg" align="right" width="100" height="100">it's operator
and clients successes. General text about the business , it's operator
and clients successes.</font></p>
<p>
<font face="Arial" style="font-size: 9pt" color="#525252">
General text about the business , it's operator and clients successes.
General text about the business , it's operator and clients successes. </font></p>
<p>
<font face="Arial" style="font-size: 9pt" color="#525252">
General text about the business.</font></td>
<td width="25%" align="left" valign="top">
<table border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber9"> imagine how much leaner this would be if you did an external style sheet for just two things: the font and the <p>
_____________________________
Dan
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Layout with CSS - 12/28/2004 19:21:18
quote:
especially nested tables I never nest tables..i use rowspan and colspan attributes for the same effect
_____________________________
Dan
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: Layout with CSS - 12/30/2004 6:52:47
Nicoleoz There is a site called Code Punk. Go there and do their css tutorials. they are great for learning when you are starting out. If you can,purchase the bundled course lessons from West civ. Then check out the links section here in the css forum. Divs =boxes. They are so easy once you learn them. Work on learning the box model. I believe that there are links to this in the links section. Also, find things on google that will help you with the parent child etc... I would search for you, but am in the middle of planing daughters wedding and getting my house in order for this. I honestly dont't have time to do this for you or I would. I always provide links when people don't understand something. Also go and read the specs, boring, but print them out and study them. I'm going to give you some links, I'm on early enough to get a search for a few things for you. Also, I can get a list of books to you if you wish. ORder them from Amazon.com. Best prices and shpping on them. Also, not sure if this is where you are, but go with xhtml. Most compatible (though argueable with some) with css. Use the xhtml transition dtd, I think I posted it in here somewhere with the correct dtd's. If not, I'll get them up and make a sticky post out of them for all that need to see them. CSS Specs http://www.w3.org/TR/CSS21/ Box Model, MOST needed to understand how this works, can't stress it enough http://www.w3.org/TR/2004/CR-CSS21-20040225/box.html xhtml discussion http://www.extremetech.com/article2/0,3973,11772,00.asp how to read the specs http://www.thenoodleincident.com/tutorials/css/ google search on child sibling parent http://www.google.com/search?q=css+child+sibling+parent+tutorials&hl=en&lr= google search on selectors/decendants goes by both names http://www.google.com/search?hl=en&q=css+selectors&spell=1 css div tutorials http://www.google.com/search?hl=en&lr=&q=css+divs+tutorials+ This should keep you busy for a while. Also go to lvs online learning, they have css classes for 25 for your first class and then 20 after that, they are good ones. ( if you do, pm me for my address and let them know when you sign up that I sent you there as I would get creidt towards my next class with them) They have classes open right now. google and go there and register for a class. Vikki, is the teacher you want to stay with, she is pretty good. Another suggestion, I have a homework thread in here, go there and study the pages and the css and the explainations that are in the thread. Play with the css. google search on positioning in css http://www.google.com/search?hl=en&lr=&q=css+positioning So I hope that these help you out, and PLEASE, don't ever think that any question that you will post in here won't be an important one. You could ask one that someone else might be afraid to answer.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
caz
Posts: 3520 Joined: 10/10/2001 From: Somewhere south of Chester, UK Status: offline
|
RE: Layout with CSS - 12/30/2004 18:14:15
As a short cut, you could also work through the tutorials that came with StyleMaster. They will give you a good foundation on which to build, as well as learning to use the editor. Cheers Carol
_____________________________
Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard. Cheshire cat. www.doracat.co.uk I remember when it took less than 4hrs to fly across the Atlantic.
|
|
|
|
Nicole
Posts: 2830 Joined: 9/15/2004 From: Nambucca / Kempsey, Australia Status: offline
|
RE: Layout with CSS - 1/2/2005 2:03:16
I don't know if my brain is full or something, but i've just about had it with CSS! Can anyone please explain to me (in simple terms), why this page has no style despite it being clearly written in the XHTML that it's there. Here is the code i've written, i'd also appreciate feedback on it (in simple terms) if it might be the reason that page has no style. body {
background-color: #f4f0e6;}
table#page {
background-color: #ffffff;
padding: 10px;
border: 1px #666666 solid;}
table#header {
border: 1px #666666 solid;}
table#navigation {
border: 1px #666666 solid;}
a:link#navigation {
color: #eeeeee;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
a:visited#navigation {
color: #eeeeee;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
a:hover#navigation {
color: #ffffff;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
a:active#navigation {
color: #eeeeee;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
p#navigation {
text-align: right;}
table#content {
background-color: #ffffff;
border: none;
padding: 10px;}
p#content {
color: #666666;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
text-decoration: none;
font-weight: normal;
font-style: normal;
text-align: left;}
ul#content {
list-style-type: square;
white-space: normal;}
img#content {
padding: 5px;}
h4#content {
color: #666666;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
text-decoration: none;
font-weight: bold;
font-style: normal;
text-align: left;}
table#lefttop {
background-color: #f4f0e6;
border: 1px #000000 solid;
padding: 10px;}
h1#lefttop {
font-size: 1em;
color: #000000;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
font-style: normal;
text-align: center;}
p#lefttop {
text-align: left;
color: #666666;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
font-weight: normal;
text-decoration: none;
font-style: normal;}
table#leftmiddle {
background-color: #568406;
border: 1px #000000 solid;
padding: 10px;}
h2#leftmiddle {
color: #ffffff;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 1em;
font-weight: bold;
text-decoration: none;
font-style: normal;
text-align: center;}
table#right {
background-color: #006897;
border: 1px #000000 solid;
padding: 10px;}
p#right {
color: #ffffff;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.8em;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-align: left;}
table#righttop {
background-color: #003366;
border: 1px #000000 solid;
padding: 10px;}
h3#righttop {
text-align: center;
color: #ffffff;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 1em;
font-weight: bold;
font-style: normal;
text-decoration: none;}
table#footer {
background-color: #ffffff;
border: none;
padding: 10px;}
hr#footer {
width: 1px;
color: #666666;}
a:link#footer {
color: #666666;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.625em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
a:visited#footer {
color: #666666;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.625em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
a:hover#footer {
color: #000000;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.625em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
a:active#footer {
color: #666666;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 0.625em;
text-decoration: none;
font-weight: normal;
font-style: normal;}
p#footer {
text-align: right;} Many thanks from a very frustrated individual. Nicole
_____________________________
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Layout with CSS - 1/2/2005 5:05:05
you need to replace the <head> with this <head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>New Page 1</title>
<link href="consultancy1.css" rel="stylesheet" type="text/css" />
</head> :)
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Layout with CSS - 1/2/2005 6:02:25
jaybee your avatar is looking a bit autistic in 2005 ;)
_____________________________
David Prescott Gekko web design
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: Layout with CSS - 1/2/2005 7:24:44
Nicole, Try not to get frustrated with this. I know that it can be. When you feel the frustration on coming, go play an online game or two. Take a break from it then come back and things might go a bit smoother for you. Jaybee and Dave know a good deal, so listen to them. Hey Jaybee, love that avatar. REally neat!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
d a v e
Posts: 4086 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Layout with CSS - 1/2/2005 7:28:14
don't forget to validate (xhtml and css) as well - it's a useful way to pick up errors even if it isn't necessarily helpful as far as fixing it goes!
_____________________________
David Prescott Gekko web design
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: Layout with CSS - 1/3/2005 10:19:46
quote:
No Deb, you got me wrong. I've fixed their supposed pixel perfect so that it actually is pixel perfect and fluid as well. OOOPS! I do agree that they need to test their layouts more. Just because it works like they have it layed out, doesn't mean that when someone else adds stuff that its going to work. Thats why, even for the ones that we do ourselves, we should try to break them. This way, if someone decides to "borrow" our designs, they don't break on them (although, I prefer to let them break on someone "borrowing my design  ) Yes, css does work good with ssi's. I have one page where the whole content of the page is set up as an ssi. From begining of body to end, with total styles, and it works great. Styles and all are called in as the page opens up. And it validates to! yipppee!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|