Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 12-17-2011, 09:59 PM Align centered
Junior Talker

Posts: 1
Trades: 0
Hi!

I have a problem. There is a folder, with "background.html" file. How I can put to the center the content? I have no idea...

Thank!
celestron is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-17-2011, 11:25 PM Re: Align centered
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
background.html being what kind of file? An image, or html file? If it's an HTML file you just want included, you could use SHTML include statements.

Just remember, the including file must be .shtml, not .html.

Put
HTML Code:
<!--#include file="background.html" -->
where you want the file.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!

Last edited by Physicsguy; 12-17-2011 at 11:27 PM..
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 12-18-2011, 10:53 AM Re: Align centered
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Must be time for a name change to "The Psychic Web Experts" with questions like this one and this
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-19-2011, 06:16 PM Re: Align centered
Ultra Talker

Posts: 423
Name: Janice McClean
Trades: 0
To center the content just use <center> content </center>

Fairly simple HTML work here.
__________________
My Site : MacFTW [link coming soon!]

Hosted by:
Please login or register to view this content. Registration is FREE
cantletugo is offline
Reply With Quote
View Public Profile
 
Old 12-19-2011, 11:42 PM Re: Align centered
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Except for one thing: <center> has been deprecated for several years. Let's not teach pre 2005 code here.

The way to do it now is through CSS, by specifying margin: 0 auto; on the body or a wrapper div. Not an HTML question.

Also, the OP specified centering a file, which presupposes an include, also not an HTML question.

And we still haven't heard back from that OP to get what the specific question is, much less a link to a site or any code. It's really hard to debug vague concepts.

But I suppose you'd have to read the thread first like I did to know all that.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 12-22-2011, 07:31 PM Re: Align centered
Ultra Talker

Posts: 423
Name: Janice McClean
Trades: 0
Quote:
Originally Posted by serandfae View Post
Except for one thing: <center> has been deprecated for several years. Let's not teach pre 2005 code here.

The way to do it now is through CSS, by specifying margin: 0 auto; on the body or a wrapper div. Not an HTML question.

Also, the OP specified centering a file, which presupposes an include, also not an HTML question.

And we still haven't heard back from that OP to get what the specific question is, much less a link to a site or any code. It's really hard to debug vague concepts.

But I suppose you'd have to read the thread first like I did to know all that.

tim
Yes I agree the best way to do the centering is through CSS but I feel like the OP does not truly understand the HTML language so CSS is truly going to be more difficult for him. The simple HTML code is probably a good stepping stone snippet for him.
__________________
My Site : MacFTW [link coming soon!]

Hosted by:
Please login or register to view this content. Registration is FREE
cantletugo is offline
Reply With Quote
View Public Profile
 
Old 12-23-2011, 06:02 AM Re: Align centered
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by cantletugo View Post
Yes I agree the best way to do the centering is through CSS but I feel like the OP does not truly understand the HTML language so CSS is truly going to be more difficult for him. The simple HTML code is probably a good stepping stone snippet for him.
Teaching someone who doesn't know CSS how to use code that has been deprecated for over TEN YEARS does them no favours at all.

What is the point in showing them something that is of no use to them at all when going forwards into CSS?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Align centered
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28122 seconds with 12 queries