CSS - Floats mis-aligning on window width change - css

#imgseasonal{
width:120px;
height:120px;
}
.colseasonalfirst{
width:215px;
float:left;
margin-left:0px;
text-align:center;
}
.colseasonal{
text-align:center;
width:215px;
float:left;
margin-left:15px;
}
Screenshot one:http://imgur.com/y97DyUm
Screenshot two:http://imgur.com/HWWbhXH
Im having a difficult time having these columns stay in an aligned row on certain window sizes. The columns dont go all the way to the left on the second row. When I shrink them more, the problem gets worse. Am I missing a key element of css to help remedy this alignment issue?

Related

How to make a button panel, when mouse over, one button get larger, but the size change doesn't affect the layout of other buttons on the panel

Right now, when mouse over, the font get larger, but it stretch out the outer container.
I don't want the outer container to stretch out. What is the solution?
You can adjust the margin down by the same amount that you are increasing the size of the element.
.button{
width:20px;
height:20px;
margin:15px;
}
.button:hover{
width:30px;
height:30px;
margin:10px;
}
See the fiddle: http://jsfiddle.net/tm1uethc/2/

CSS issue in table

I have done a lot of research before posting it in here. So, here I got few imperfections.my link
Question: In the last tab which is supposed to be a contact info tab, how do I make those two tables to get close to each other? I will take borders afterwards. But how do I make them get close and centered?
I put them under table, did not work. Then tried to use division, still is not working. what should I chance in the css file?
Thats it for now. Thanks in advance!
For the Question 2
I want to say that in css replace float:right for sag div
.contact-info {
width:98%;
margin:1%;
}
#sol {
float:left;
text-align:left;
margin-left:290px;
margin-right:auto;
width:200px;
}
#sag {
float:left;
text-align:left;
margin-left:auto;
margin-right:auto;
width:200px;
}
For your second question I want to tell you that in css replace float:right for sag div and to place them in the center of the page just add in your css just add
#contact-info { width:250px;
margin: 0 auto;
}
Hope this will help you!

CSS Send div to bottom of other div; bottom:0 isn't working

I have one div; header, and another called headerimg containing an image. I'm trying to make the header image stick to the bottom of the header (horizontal line) when resizing the page. Here's my code:
.header{
float:right;
width:93%;
height:100px;
padding-right:0px;
background-image:url('img/barhorizontal.gif');
background-repeat:repeat-x;
background-position:bottom;
postion:relative;
}
.headerimg{
bottom:0;
postion:absolute;
}
.headerimg img{
width:45%;
height:auto;
}
But it doesn't work. Here's my website: Click
Any help?
You misspelled position.
you have: postion
change to: position
How to spot things like this? Open developer tools in your browser. In Chrome, at least, it shows a little yellow triangle next to it and has that line crossed out. You see the error "Unknown property name"

CSS image haywire

Can someone help me out with some css image positioning?
I am trying to make a column where the top and bottom are separate images. I am
doing this so I will have a nice curve but when the images are placed in, the right column
goes underneath the left div instead of floating right. I have tried absolute positioning but seems to do nothing. Any help will be much appreciated, thanks.
CSS:
#column-top{
width:735px;
height:40px;
float:left;
background-image:url(images/opactop.png);
}
#column_left_content{
width:735px;
min-height:500px;
margin-right:0px;
float:left;
background-image:url(images/opaccontent.png);
background-repeat:repeat-y;
}
#column_bottom{
width:735px;
height:40px;
float:left;
background-image:url(images/opacbottom.png);
}
#column_right{
width:160px;
height:900px;
float:right;
background-image:url(images/opac.png);
background-repeat:repeat-y;
}
Here is my fiddle for you. You don't need to float the top and bottom. left float the two middle ones and place them inside a container div. jsfiddle

CSS Float Images, Remove margin each line

Im trying to align multiple Images or DIVs.
i get the content from wordpress.
#wrapper{
width:800px;
}
.image{
width:125px;
height:100px;
float:left;
margin-left:10px;
}
This causes the last image to go to the next line.
i found
#wrapper div:first-child{
margin-left:0px;
}
helps me with the first line but the next lines are "broken" again.
how can i align 6 images in a row with ^n Pictures?
That's indeed a common design problem. I used to fix it by adding 10px to the container, but nowadays I always use a jQuery fix:
$("#wrapper .image:nth-child(6n+1)").find('img').css('margin-left','0');
See jsfiddle here
Or you could do it CSS only, but this will only work in real browsers (not in <=IE8)
.image:nth-child(6n+1) {
margin-left:0px;
}
See jsfiddle here
Sounds like the total width of the images, padding and margin are too wide for your container width. Try increasing the container width to confirm this.

Resources