Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.