Anzeo Posted October 7, 2006 Share Posted October 7, 2006 Hi everyone,New here to PHP Freaks and actually also to the whole php scene. I've been learning it myself, workign with db's and stuff but there's one little thing I'd like to know: I'm currently building two sites, one which I completely started myself. And another which I've taken over. The last one was scripted in php, but there wasn't much fancy stuff on it, which means I 've been able to cope with it. I've improved it a bit but I'm wandering now. My layout is being messed up. Probably by a malicious code or sumthing located in the header file.I've copied pasted that script back when I was re-starting that site. The header shows the menu up to the left. Now I'm wandering: how should you script it that the menu shows up left (as it currently does) and the text next to it (so not beneath the menu table)?If anyone could explain me that would be much apreciated.Greetz,Anzeo Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/ Share on other sites More sharing options...
hanlonj Posted October 8, 2006 Share Posted October 8, 2006 You would need to explain what type of formatting you are using e.g. CSS,tables etc.It's impossible to tell what your problem is from this post.Alternatively, you could post a code snippet to clarify.Hanlonj Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-105793 Share on other sites More sharing options...
Anzeo Posted October 8, 2006 Author Share Posted October 8, 2006 I'm using tables. The problem is when I want to make the text show up next to the menu it instead shows it up underneath my menu tables (stored in the header.php) I'm wanderign if there's a way to show them next to eachother (so my index includes the header, the header has tables and next to those tables the index text shows up) Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-105829 Share on other sites More sharing options...
redarrow Posted October 8, 2006 Share Posted October 8, 2006 this is a css problam you can do this with the float css syntexexample only[code]float: center;clear: both;[/code]float can be used also with any postion to postion in the correct postion ok. Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-105844 Share on other sites More sharing options...
wildteen88 Posted October 8, 2006 Share Posted October 8, 2006 @redarrow: When you use float there is only two options left or right. There is no center option. Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-105889 Share on other sites More sharing options...
redarrow Posted October 8, 2006 Share Posted October 8, 2006 sorry that correct what a idiot iam i was thinking of the position: absolute in px and also working on my site while ansaw the quistion sorry. Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-105921 Share on other sites More sharing options...
Anzeo Posted October 8, 2006 Author Share Posted October 8, 2006 So.. do I simply add this code at the top of my header or start file? And is it in between the php tags or not? I've never worked with css before :-[ Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-105976 Share on other sites More sharing options...
Anzeo Posted October 9, 2006 Author Share Posted October 9, 2006 Can anyone help me out? You're allowed to call me a nub in exchange for help :D Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-106488 Share on other sites More sharing options...
Anzeo Posted October 11, 2006 Author Share Posted October 11, 2006 Guys? Can anyone please point me out where I need to put that CSS script. Just tell me. If it requires aditional CSS-code I'll learn it, but at least tell me where it should go... Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-107544 Share on other sites More sharing options...
whitehat Posted October 11, 2006 Share Posted October 11, 2006 [code]<?php$your_top_code;?><style type="text/css">float: right;clear: both;</style><?php$the_rest_of_your_code[/code] Quote Link to comment https://forums.phpfreaks.com/topic/23302-headers/#findComment-107664 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.