Log In · Register

 
 
Closed TopicStart new topic
Div Layout: Navigation & Columns
ShizukaHio
post Feb 1 2009, 03:59 AM
Post #1


Member
**

Group: Member
Posts: 28
Joined: Jan 2009
Member No: 708,903



I've got 2 questions.

1. How do you do the navigation code to where its lined up one under the other and you can change the colors for the navigation background and letters and change the writing to the type and size you want?

2. How do you put more than one columns in the div layout?
 
Mickey
post Feb 1 2009, 11:33 AM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



If you're doing a navigation code vertically, create a class with a block display like this:

CODE
<style>
.navlinks {display:block;}
</style>

Then use that class for all the links you want to display vertically like this:

CODE
<a href="URL" class="navlinks">LINK</a>
<a href="URL" class="navlinks">LINK</a>
<a href="URL" class="navlinks">LINK</a>
<a href="URL" class="navlinks">LINK</a>
<a href="URL" class="navlinks">LINK</a>

If you want to put more than one column in a DIV, I suggest just adding another DIV on your page using a code like this:

CODE
<div style="position:absolute; left:50%; margin-left:-400px; top:250px; height:800px; width:300px;">
CONTENT
</div>

Just adjust the margin-left and top property values to position the DIV where you want it to be. Adjust the height and width to fix its size.
 
ShizukaHio
post Feb 1 2009, 09:59 PM
Post #3


Member
**

Group: Member
Posts: 28
Joined: Jan 2009
Member No: 708,903



Okay thank you so much that helps alot. If I want to have a border and different background color for the columns, how do I do that?
 
Mickey
post Feb 2 2009, 08:38 AM
Post #4


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



On this bit:

CODE
<div style="position:absolute; left:50%; margin-left:-400px; top:250px; height:800px; width:300px;">

Add border and background properties so it looks like this:

CODE
<div style="position:absolute; left:50%; margin-left:-400px; top:250px; height:800px; width:300px; border:1px solid; border-color:000000; background-color:ffffff;">

Then just edit them according to the style you want.
 
ShizukaHio
post Feb 2 2009, 11:42 PM
Post #5


Member
**

Group: Member
Posts: 28
Joined: Jan 2009
Member No: 708,903



Okay I thought that would be the end of my questions and I'm really hoping this is the very last thing now but how do you do a border for the headings and background, I'm sure its similar to the above code for the columns but what else am I missing to do it for the headers?
 
Mickey
post Feb 3 2009, 09:14 AM
Post #6


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



For headings, you'd have to create a class like this:

CODE
<style>
.header {border:1px solid; border-color:black; background-color:white;}
</style>

Then use that class for whenever you want to style up a header like this:

CODE
<h1 class="header">Header</h1>

Just play around with the properties to get your desired look.
 
ShizukaHio
post Feb 4 2009, 04:18 AM
Post #7


Member
**

Group: Member
Posts: 28
Joined: Jan 2009
Member No: 708,903



Okay well I think I got it, thank you but I'm not as sure yet. I can't seem to fix something else but I'm not sure it might just be my computer.
 
Mickey
post Feb 4 2009, 08:23 AM
Post #8


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Alright, well I'm gonna go ahead and close this. PM me if you need it reopened. Topic closed & moved.
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: