Log In · Register

 
content boxes??
splitprsona
post Jun 26 2008, 06:19 PM
Post #1


Newbie
*

Group: Member
Posts: 9
Joined: Jun 2008
Member No: 661,375



i used to get my coding from migente but the page is no longer working
but i need working div box codes for my layout.

http://profile.myspace.com/index.cfm?fusea...endid=341649026

i have 3 sections as you can see & i'm using firefox so i need a code that would allow me to put content in the different sections. hopefully someone can help me if they understand what im saying! lol
 
 
Start new topic
Replies
fixtatik
post Jun 27 2008, 11:01 AM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



first of all, the attribute "z-index:" doesn't work on myspace anymore, so that's something you can leave out.

secondly, i'd suggest putting all of your styles into one style sheet; it makes it so much easier to work with, and it ultimately saves on load times, because browsers don't have to keep reading <style type="text/css">.

the final part, embed all of your divs into the main div, which it seems like you're doing, with just a little problem.

if you have a div inside another div, like this:
CODE
<div class="main">
  <div class="aboutme">
    text, text, text
  </div>

  <div class="another-div">
    more text, text, text
  </div>
</div>
then you need to position "aboutme" and "another-div" within that main div. to do that, think about where the borders of the main div are, and how far away from that border you want the other divs to be.

for example, say you have that 800x600 main div, and you want the about me to sit 10 pixels from the left side, and 25 pixels from the bottom. in your style sheet, you'd put something similar to:
CODE
<style type="text/css">
.aboutme { position:absolute; bottom:25px; left:10px; }
</style>
absolute positioning means that the object you're positioned is to be positioned absolutely (wow!) within the div that surrounds it. that's why when you position the main div absolutely, it's based on the entire page, because it's not embedded within anything but the page itself.
 

Posts in this topic


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