Hello guys, how are you doing?
I have a couple of questions please, I would appreciate any help.
1- I have three "relative <div>" I want to put them next to each other and making sure if someone has less resolution, there wont be a scroll bar. But instead the <div> will adjust and the text will go below.
I made sure all three have the following attributes:
position: relative;
float: left;
But the problem is that each one of these div's has a width according to the text in it, which means they are next to each other. I also added a <div> to wrap all three <div> it didnt work.
I tried giving them a width of 33% each and one 34% but one of them jumps down whenever I resize my browser.
here is my code:
.bassano1 { width: 33%; }
.bassano2 { width: 33%; }
.bassano3 { width: 33%; }
.bassano1, .bassano2, .bassano3, .bassano4, .bassano5
{
position: relative;
background-color: #008001;
border: 2px solid #095E09;
float: left;
height: 50 %;
}
I tried making the height the same, but it didnt work either.
2- How can I center a table or an image in a <div>?
Thanks in advance