The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Code to center?

View previous topic View next topic Go down

Solved Code to center?

Post by Bloodhound1958 on November 21st 2011, 10:25 pm

I embedded a youtube channel at the top of the forum and was wondering if there's an additional code I can add to the template to center it?

http://christinecarclub.forumotion.com/

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

Solved Re: Code to center?

Post by Mati on November 21st 2011, 10:29 pm

Use center tag:
Hello
Code:
[center]Hello[/center]

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: Code to center?

Post by ankillien on November 22nd 2011, 3:38 am

Hi,

If you have added the video via templates, you can use <center> tags to center align it. Example..

Code:
<center>
...YOUR VIDEO CODE HERE...
</center>

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Code to center?

Post by Bloodhound1958 on November 22nd 2011, 5:49 am

How would I center it to the Logo and menu at the top of the forum?

http://christinecarclub.forumotion.com/

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

Solved Re: Code to center?

Post by ankillien on November 22nd 2011, 6:08 am

For that, instead of <center></center> tags, wrap the video code inside <div> tags and apply margins as per your need, like this....

Code:
<div style="margin-left: 30px;">
...YOUR VIDEO CODE HERE...
</div>

Change the margin to adjust alignment.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Code to center?

Post by Bloodhound1958 on November 22nd 2011, 7:00 am

Gotcha, I think my issue is in the widget columns. The center codes worked perfect but the widget colums are to high. I need to figure out how to bring them down level with the forum body...

http://christinecarclub.forumotion.com/

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

Solved Re: Code to center?

Post by ankillien on November 22nd 2011, 7:18 am

I don't think thats going to solve the issue since the layout is drawn by tables and not floated divs. But you can try this code...

Code:
#left , #right {
margin-top: 495px;
}

Add it to Admin CP > Display > Colors > CSS.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Code to center?

Post by Bloodhound1958 on November 22nd 2011, 3:51 pm

Thanks! Smile

Bloodhound1958
Forumember

Posts : 127
Reputation : 3
Language : English

Back to top Go down

Solved Re: Code to center?

Post by ankillien on November 22nd 2011, 4:17 pm

Glad I could help Very Happy

Topic Solved

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum