Unholy Prayer Posted January 21, 2007 Share Posted January 21, 2007 I'm trying to complete my first CSS only layout. I'm using the <div> tag for most of it, but there is some PHP but I don't think that's causing my problem. This is my page:http://www.dev.mtechdev.com/portal/index2.phpI want the news content to be to the right of the navigation bar, not to the left of it. Look at the source for the code. Thanks for the help in advance. Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/ Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 [code]Database error in Utopia News Pro:Invalid SQL Query: SELECT `varname` , `value` FROM `unp_setting`MySQL Error: Table 'dev_portal.unp_setting' doesn't existMySQL Error Number: 1146Date: January 21, 2007 08:20 AMScript: /portal/news/news.php[/code] Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-165499 Share on other sites More sharing options...
Unholy Prayer Posted January 23, 2007 Author Share Posted January 23, 2007 You probably looked at the regular index.php page right? Look at index2.php. Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-166891 Share on other sites More sharing options...
lando Posted January 23, 2007 Share Posted January 23, 2007 I got the same mySQL error, it comes up when you click on News Archive in index2.php Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-167254 Share on other sites More sharing options...
Unholy Prayer Posted January 28, 2007 Author Share Posted January 28, 2007 No, look at the bottom of the index2.php page in the link that i gave in my first post. There is a news article below the navigation bar. How do I make it so that it's to the right of the navigation bar. Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-170932 Share on other sites More sharing options...
lando Posted February 1, 2007 Share Posted February 1, 2007 You need to do a float:left with #nav. That pulls it out of the flow of the layout and allows #news to appear on the same line. Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-174956 Share on other sites More sharing options...
Unholy Prayer Posted February 2, 2007 Author Share Posted February 2, 2007 Omg, thank you. I've been trying to figure this out for so long. Haha. Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-175164 Share on other sites More sharing options...
lando Posted February 2, 2007 Share Posted February 2, 2007 The way your layout is setup though you will have some issues once the content of #news gets longer than the content of #nav. The content of #news will flow underneath #nav... I would suggest you do some reading on floats to better understand how to layout your site to prevent this. I listed some great resources below... :)[url=http://www.sitepoint.com/subcat/css]http://www.sitepoint.com/subcat/css[/url] **everything on sitepoint is good[url=http://www.alistapart.com/articles/holygrail/]http://www.alistapart.com/articles/holygrail/[/url][url=http://css.maxdesign.com.au/floatutorial/]http://css.maxdesign.com.au/floatutorial/[/url] Quote Link to comment https://forums.phpfreaks.com/topic/35056-need-help-w-first-css-layout/#findComment-175189 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.