Jump to content


Photo

Headers


  • Please log in to reply
9 replies to this topic

#1 Anzeo

Anzeo
  • Members
  • PipPipPip
  • Advanced Member
  • 213 posts

Posted 07 October 2006 - 09:02 PM

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

#2 hanlonj

hanlonj
  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 08 October 2006 - 10:41 AM

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

#3 Anzeo

Anzeo
  • Members
  • PipPipPip
  • Advanced Member
  • 213 posts

Posted 08 October 2006 - 12:41 PM

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)

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 08 October 2006 - 01:51 PM

this is a css problam you can do this with the float css syntex

example only
float: center;
clear: both;

float can be used also with any postion to postion in the correct postion ok.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#5 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 08 October 2006 - 03:37 PM

@redarrow: When you use float there is only two options left or right. There is no center option.

#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 08 October 2006 - 04:41 PM

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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#7 Anzeo

Anzeo
  • Members
  • PipPipPip
  • Advanced Member
  • 213 posts

Posted 08 October 2006 - 07:43 PM

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  :-[

#8 Anzeo

Anzeo
  • Members
  • PipPipPip
  • Advanced Member
  • 213 posts

Posted 09 October 2006 - 09:06 PM

Can anyone help me out? You're allowed to call me a nub in exchange for help  :D

#9 Anzeo

Anzeo
  • Members
  • PipPipPip
  • Advanced Member
  • 213 posts

Posted 11 October 2006 - 07:30 PM

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...

#10 whitehat

whitehat
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 11 October 2006 - 11:03 PM

<?php

$your_top_code;
?>
<style type="text/css">
float: right;
clear: both;
</style>
<?php
$the_rest_of_your_code





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users