Jump to content

Archived

This topic is now archived and is closed to further replies.

Anzeo

Headers

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
this is a css problam you can do this with the float css syntex

example only
[code]
float: center;
clear: both;
[/code]

float can be used also with any postion to postion in the correct postion ok.

Share this post


Link to post
Share on other sites
@redarrow: When you use float there is only two options left or right. There is no center option.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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  :-[

Share this post


Link to post
Share on other sites
Can anyone help me out? You're allowed to call me a nub in exchange for help  :D

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
[code]
<?php

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.