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.

CSS Forum


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



Reply
How to use postion fixed along with text align?
Old 08-25-2010, 08:06 AM How to use postion fixed along with text align?
Novice Talker

Posts: 10
Name: |>|?\-/|\/|-]§)-(
Trades: 0
Hello guys I need a help. I am new to css, so m not being able to figure out this problem. I have got a code.
In the code, a class has been defined as follow
Code:
div.reference{
                position:fixed;
                left:10px;
                bottom:10px;
                font-size:12px;
and below in html code its,
Code:
            <div class="reference">
                <a href="http://www.google.com/chrome/intl/en/landing_chrome.html?hl=en/">Please use Google Chrome Browser for better browsing experince</a>
                            
        </div>
This displayes the txt in the bottom of the browser but in left hand side. I tried
Code:
<div align="center></div>
for the text but that doesnot worked.
I want to display the text in center of every browser/resolution.

How can i do that? Help me plz.
thanx in advance
pramesh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-25-2010, 03:47 PM Re: How to use postion fixed along with text align?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It's doing what you tell it to do and being 10 pixels from the left edge.

To centre elements use margin: nn auto;
__________________
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 online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-26-2010, 01:52 AM Re: How to use postion fixed along with text align?
Novice Talker

Posts: 10
Name: |>|?\-/|\/|-]§)-(
Trades: 0
can you please make it clear, where i should have to make changes?
pramesh is offline
Reply With Quote
View Public Profile
 
Old 08-26-2010, 05:55 PM Re: How to use postion fixed along with text align?
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
HTML Code:
div.reference{
                margin: 0 auto;
                font-size:12px;
}
or margin: 0 auto 10px 0; (top, right, bottom, left)
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Reply     « Reply to How to use postion fixed along with text align?
 

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 1.36713 seconds with 12 queries