Jump to content

Positioning problem


Ifaiden

Recommended Posts

I have this problem whenever I zoom out in the browser (FF). The div-boxes that is close to the right borders jumps down to the next vertical line. See for yourself: http://mindu.mine.nu/amazing_solutions/gallo_negro/main.php

The images on the top, the last link in the menu does just that and the right column in the middle seems to draw closer to the right corner.

---

The other problem I have is centering two columns in a div-box.

I've managed to center it, but it seems like the wrong way of doing it?

div#boxcontainer{
position:absolute;
left:50%;
margin-left:-460px;
margin-top:10px;
}

div#left_box {
float:left;
height:700px;
width:450px;
background-image:url("http://mindu.mine.nu/amazing_solutions/gallo_negro/img/opacity70.png");
background-repeat:repeat;
color:#FFF;
border:1px solid #3e3e3e;
text-align:justify;
margin-right:20px;
}

div#right_box {
float:left;
height:700px;
width:450px;
background-image:url("http://mindu.mine.nu/amazing_solutions/gallo_negro/img/opacity70.png");
background-repeat:repeat;
color:#FFF;
border:1px solid #3e3e3e;
}

Link to comment
https://forums.phpfreaks.com/topic/205945-positioning-problem/
Share on other sites

By zoom, you mean resize the window? You need to center the container.  try this

 

body {

text-align:center;

}

 

#boxcontainer {

text-align:left;

margin:0 auto;

width: 950px; (can be more or less)

}

 

leave boxes are they are but without margins.

 

These are some very basic steps. I really suggest you take a css crash course, learn the basics and proceed.

 

Link to comment
https://forums.phpfreaks.com/topic/205945-positioning-problem/#findComment-1078560
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.