Welcome to Dream.In.Code
Become an Expert!

Join 149,785 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,764 people online right now. Registration is fast and FREE... Join Now!




teo questions about CSS

 
Reply to this topicStart new topic

teo questions about CSS, divs and navigation item.

Sneblot
13 Feb, 2007 - 01:30 AM
Post #1

D.I.C Head
**

Joined: 9 Feb, 2007
Posts: 245


My Contributions
Ok to start off with how many divs can you have per CSS file? As Im designing a site with multipule backgrounds i.e. main background text box background so on and so forth. I would use tables but reading in other threads on this site divs sound the better option.

Also my second question is about CSS menu bars. I am trying to make a menu that when you click on one of the links a box expands from under the link. Images included to show what I mean. For this I dont want any code off you just where should I start looking for tutuorials? Attached Image Attached Image
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Teo Questions About CSS
13 Feb, 2007 - 12:37 PM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,294



Thanked: 18 times
Dream Kudos: 725
My Contributions
Helping out with your second question would take me more time than I have, but I can tell you that there isn't a limit on how many divs you can have per CSS file.
User is offlineProfile CardPM
+Quote Post

Sneblot
RE: Teo Questions About CSS
13 Feb, 2007 - 01:19 PM
Post #3

D.I.C Head
**

Joined: 9 Feb, 2007
Posts: 245


My Contributions
How do I sort it out with the divs? Everytime I try to make multiple divs it just keeps referancing off one div code in my CSS file where as I want it to make a multi layered background.

Here is my code for this.
<code>
body {
background-repeat:repeat-x;
background-attachment:scroll;
background-image: url(../images/background.jpg);
background-position: top;
}

div {
background-image:url(../images/overlay.png);
background-repeat:no-repeat;
background-attachment:scroll;
background-position:center;
}

div {
background-image:url(../images/header.png);
background-repeat:no-repeat;
background-attachment:scroll;
background-position:top;
}
font {
font:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
font-style:normal;
color:#000000
}
a:link {
color: #b12d01;
font-size:10px;
text-decoration:none;
}
a:hover{
color: #6a5418;
font-size:10px;
text-decoration:none;
}
a:visited {
color: #d96640;
font-size:10px;
text-decoration:none;
}
</code>
User is offlineProfile CardPM
+Quote Post

haveacigar
RE: Teo Questions About CSS
13 Feb, 2007 - 05:03 PM
Post #4

New D.I.C Head
*

Joined: 3 Feb, 2007
Posts: 15


My Contributions
You could use div classes.
User is offlineProfile CardPM
+Quote Post

omoimasuyo
RE: Teo Questions About CSS
20 Feb, 2007 - 08:19 AM
Post #5

D.I.C Head
Group Icon

Joined: 19 Oct, 2006
Posts: 60


Dream Kudos: 50
My Contributions
Div ids would be the best way to go. As far as your second question goes, you are going to need a little javascript (or ajax) to get the popup idea to work.

I would recommend going here for some javascript tutorials.

This post has been edited by omoimasuyo: 20 Feb, 2007 - 08:20 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 07:07AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month