View Full Version : help needed
yup im a noob.
www.habbohand.co.uk/blog/blog.html (http://www.habbohand.co.uk/blog/blog.html)
how would i center the whole layout?
regards,
rave
Moved by opensourcehost (Forum Super Moderator) from Website Designing & Development: Please post in the correct forum next time, thanks http://habboxforum.com/images/smilies/smile.gif.
It all html or is there CSS?
Html - use the tags <center> and </center> around the bits you wanted centered
CSS - Pick the div or td or w/e you want centered and do the following. (Using wrapper as an example)
div#wrapper {
margin: 0 auto;
}
ok i knew it was something like center,
help appreciated +rep
the iframes are mucked up now btw lol how do i fix them?
craigg.
30-08-2007, 09:01 PM
hint, dont use iframes.
im a noob at coding so i dont know how else to do it, i dont know php or anything, unless i use that <include> thing where it includes a certain page. dont know hot to do it though
God..
30-08-2007, 11:30 PM
im a noob at coding so i dont know how else to do it, i dont know php or anything, unless i use that <include> thing where it includes a certain page. dont know hot to do it though
I'm not sure, but you could try this:
<?php
include ('file.php');
?>
where would i put that in the code?
Scania
31-08-2007, 07:36 AM
I'm not sure, but you could try this:
<?php
include ('file.php');
?>
Don't listen to him.. Thats basically just another way of linking up 2 directory's.
craigg.
31-08-2007, 08:18 AM
im a noob at coding so i dont know how else to do it, i dont know php or anything, unless i use that <include> thing where it includes a certain page. dont know hot to do it though
I would use includes (as the person above sujested) It saves time when editing. (It's basically like an IFrame in theory, as an Iframe is getting a page from the directory, as is an include.
If you do use "<?php include (" "); ?>" then your pages will need to have the extension .php , make sure your host can handle php first.
IFrames are a waste of space now, they take a long time to load plus, if you're wanting to move into XHTML, it will not be valid. If you have a problem understanding include, simply google it and there will be masses of information.
I'm with Craig on that one.
Drompo
31-08-2007, 01:04 PM
If you having links that need to open in the middle Includes would not work for you.
craigg.
31-08-2007, 01:20 PM
I was confused by the above comment. If you're using includes, all you need to do is have seperate php pages and position the php include in the centre. I think I know what you mean.
You could just type the information you need on the html page, that's simple enough. Then when you come to edit, just use Macromedia Contribute.
In iframes, theres that width="x" height="x" top="x" left="x" which detirmins where and how big the frame is, how can i do it with the php thing to make sure it doesnt run over the edge.
but how do i do it ontop of a layout, cus otherwise the layout will just break up yeah?
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.