Fabis94 Posted May 22, 2009 Share Posted May 22, 2009 Im making a PHP script that will auto output stuff from the database. I want to make a div that will have a layout like this inside: The red thing is an image and its supposed to be in the upper left corner (always) because its an icon. SOME TEXT HERE and the More text are supposed to be next to the image (not on a new line). After that there is the big text. So i need to use float somewhere or what? (im talking about the text needing to be sticked to the images right side). Quote Link to comment https://forums.phpfreaks.com/topic/159253-css-layout/ Share on other sites More sharing options...
Yeodan Posted May 22, 2009 Share Posted May 22, 2009 yep float left should work here wrong forum btw Quote Link to comment https://forums.phpfreaks.com/topic/159253-css-layout/#findComment-839899 Share on other sites More sharing options...
Fabis94 Posted May 22, 2009 Author Share Posted May 22, 2009 Float left to what? If i add it to the whole div then it wont work. Do i need to add <span> to the texts? Quote Link to comment https://forums.phpfreaks.com/topic/159253-css-layout/#findComment-839902 Share on other sites More sharing options...
Yeodan Posted May 22, 2009 Share Posted May 22, 2009 you have to make 3 divs one for the image one for the text next to the image (float this left) (you might have to clear here) and one for the big text Quote Link to comment https://forums.phpfreaks.com/topic/159253-css-layout/#findComment-839910 Share on other sites More sharing options...
Fabis94 Posted May 23, 2009 Author Share Posted May 23, 2009 In the More Text div the text sticks to the top (as usually). Is there a way to make it stay at the bottom? Quote Link to comment https://forums.phpfreaks.com/topic/159253-css-layout/#findComment-840624 Share on other sites More sharing options...
Yeodan Posted May 29, 2009 Share Posted May 29, 2009 <div valign=bottom>more text</div> Quote Link to comment https://forums.phpfreaks.com/topic/159253-css-layout/#findComment-844715 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.