Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Help with CSS, please!
Old 01-12-2007, 05:26 PM Help with CSS, please!
franklindeleon's Avatar
Novice Talker

Posts: 11
Name: Franklin de Leon
Trades: 0
ok I'm new to the whole css thing and I am working on switching my site from tables to css, and I have to questions:
first I think I got the the banner, the navigation bars and the footer but now, HOw do I place my content which is supposed to go at the right sife os the left nav bar, if I insert a new <div> it is gonna show up underneath the left nav instead of the right, please tell me how to go this.
Here's my second question since I am new to this I wan to make sure I get things right, so once I have all my pages done I palce a link between the <head> </head> tag pionting to the stylesheet containing atributes such as this for example:
body
{
background-color:#9C9C9C;
text-align: center;
}
p {font: 12px verdana
}
li {font: verdana 14px
}
h1 {font: verdana 14px
}
h2 {font: verdana 14px
}
ul {font verdana 14px
}
a:hover
{color:#ffffff;
}
a
{
color: #000000;
text-decoration: none;
font-family: verdana;
font-size:12px;
}
meaning that I don't nedd to put this code into all of the pages as long as I palce the link into every single one of them and of course upload it to the root file, did I get it right?
here's the link http://fdvisions.com/css.html
Please guys let me know what you think, before I lose my mind over this css thing.
thank you
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
franklindeleon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-12-2007, 05:57 PM Re: Help with CSS, please!
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
Hi Franklin,

Adam's got some good css layouts that you can use here: http://www.searchenginefriendlylayouts.com/

There might be some that you can use.

Yes, you are spot on with relocating your css to an external file with code similar to this:
HTML Code:
 <link rel="stylesheet" href="styles.css" type="text/css" />
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 01-12-2007, 09:26 PM Re: Help with CSS, please!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Another very important thing that you need is a valid DOCTYPE. The DOCTYPE declaration goes BEFORE your opening <html> tag on every page.
Read about choosing the right DOCTYPE here:
http://alistapart.com/stories/doctype/

Suggestions:
1 - Wrap your entire layout in a 'container' div, I even call mine #container. If your layout is a fixed width, give #container that width, then set add
position:relative.

2- There is no such thing as 'float: center' as you have on your footer. The proper attributes are right, left, or none. If you want to center a fixed-width layout you have to do it like this:

body{
text-align: center /* so IE 6 and below will center everything */
margin: 0;
padding: 0;
}

#container{
position: relative;
width: xxxpx /* for fixed -width layouts */
margin: 0 auto /* zeros out top/bottom margins, sets right/left margins to auto */
text-align: left; /*gets your text back where it normally belongs inside #container */
}

Learn to use floats properly, look out for the inevitable IE bugs (6 and below), and read up on conditional comments to target IE6 and below.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-20-2007, 11:29 AM Re: Help with CSS, please!
franklindeleon's Avatar
Novice Talker

Posts: 11
Name: Franklin de Leon
Trades: 0
ok guys, I've done some changes on the site, and I think I need some more help, I have some questions I hops someone can help me.
1.I like the banner with the name and the mouse pic, I want to keep the look nice, clean and professional but I feel like there's something missing in there, maybe the "FDVISIONS.COM' logo should be in a diferent font? what do you guys think.
2. I want the top navigation ber aligned to the right, but how do i separete the options a little more? they're to close to each other.
3. When I try to type my content or insert a image it all appears on top of the left navigation, how do I move it over to the right.
4.The footer it's supposed to have a gray background and be text centered, what I'm I doing wrong?.
As always thank you for your help.
here's the link: http://www.fdvisions.com/test.html
Have a good one.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
franklindeleon is offline
Reply With Quote
View Public Profile
 
Old 01-21-2007, 06:39 PM Re: Help with CSS, please!
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
I want the top navigation ber aligned to the right, but how do i separete the options a little more? they're to close to each other.
Put your top nav into a list. You have this:
Quote:
<div id="top_nav">
<a class="white" href="#">HOME</a> |
<a class="white" href="#">ABOUT</a> |
<a class="white" href="#">PORTFOLIO</a> |
<a class="white" href="#">CONTACT</a> |
</div>
Make it into this:
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a><li>
<li><a href="#">Porfolio</a><li>
<li><a href="#">Contact</a><li>
</ul>


Then you style the list items, controlling the spacing and the appearance of the list and the <a>'s inside them.

Quote:
3. When I try to type my content or insert a image it all appears on top of the left navigation, how do I move it over to the right.
Create another div for your content and give it a wide enough left margin to push it over past the left nav area. It is not necessary to float it either.

You've got a LOT of floated elements, mostly unnecessary too. The only thing I see that you would really want to float is the left nav and maybe the top nav UL.

Quote:
4.The footer it's supposed to have a gray background and be text centered, what I'm I doing wrong?.
Couple of things.
First, get rid of the duplicate <html> tag at the top.

Second, if you're going to use floats you must learn to CLEAR them. You have not cleared any of your floats. There are several methods:
http://css-discuss.incutio.com/?page=ClearingSpace

Once you clear your floats, I think you'll find your footer where it belongs.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with CSS, please!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25632 seconds with 12 queries