iarp Posted October 2, 2008 Share Posted October 2, 2008 Hey, Trying to make a page that has a box 100% wide, 75px high has an image being repeated on the x axis and another image center in the middle. That way any screen size, the image centered will always be in the middle of the page. I've tried tables and divs and such and can't get anything to float in the center vertically. Any help? Link to comment https://forums.phpfreaks.com/topic/126713-center-vertically-and-horizontally/ Share on other sites More sharing options...
sKunKbad Posted October 2, 2008 Share Posted October 2, 2008 http://www.joe2torials.com/css/examples/horizontal_and_vertical_centering_example.html Link to comment https://forums.phpfreaks.com/topic/126713-center-vertically-and-horizontally/#findComment-655423 Share on other sites More sharing options...
purplenewt Posted October 2, 2008 Share Posted October 2, 2008 if its just an image and you want centered and you are going to be declaring the height you could make the image into a background and then use the following css. background: url(image_name.jpg) center no-repeat #color; Hope this helps Link to comment https://forums.phpfreaks.com/topic/126713-center-vertically-and-horizontally/#findComment-655455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.