473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Place a box at the topright

Abs

Hi!

I need to place two boxes in my site. One at the top left border and
the other at the top right border. I have no problem with the top left
one, but I'm not able to place the top right one, it doesn't appear.
These are the CSS rules I'm using:

..topleft {
position: absolute;
top: 0px;
left: 0px;
width: 60px;
height: 60px;
border-style: solid;
border-color: #76725E;
border-width: 1px;
background-color: #ffffff;
}

..topright {
position: absolute;
top: 0px;
bottom: auto;
left: auto;
right: 100%;
width: 60px;
height: 60px;
border-style: solid;
border-color: #76725E;
border-width: 1px;
background-color: #ffffff;
}
What am I doing wrong ? Anyone can help me on this, please ?
Thanks in advance

Jul 20 '05 #1
2 1714
Abs wrote:

Hi!

I need to place two boxes in my site. One at the top left border and
the other at the top right border. I have no problem with the top left
one, but I'm not able to place the top right one, it doesn't appear.
These are the CSS rules I'm using:

.topright {
position: absolute;
top: 0px;
bottom: auto;
left: auto;
right: 100%;
width: 60px;
height: 60px;
}

What am I doing wrong ? Anyone can help me on this, please ?


You're trying to place it at 100% of the available space from the right,
otherwise known as "far left".

Get rid of the bottom and left properties, and use right: 0px;

--
Mark.
http://tranchant.plus.com/
Jul 20 '05 #2
Abs
Mark Tranchant wrote:

You're trying to place it at 100% of the available space from the right,
otherwise known as "far left".

Get rid of the bottom and left properties, and use right: 0px;

Thank you very much, it makes sense !
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mohammed Mazid | last post by:
Can anyone please tell me if there is a class that provides place names in the world? I am trying to implement a Flight system and if there was such a class then it could've contributed towards...
8
by: Andrew Morgan | last post by:
Hi I have a matrix class: template<class Type> class TMatrix { //... TMatrix& T(); //... }
9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
1
by: Sabine Oebbecke | last post by:
Hi there, Need some help again ... I have a continuous form which shows the attendees of a competition as per their placing in the competition. So, the first record is the winner, the second...
2
by: Alessandro Rossi | last post by:
Hi, I made a usercontrol with 2 TextBoxes and 2 labels. When i place the usercontrol in a webform, i see the grey rectangle, and i can place the usercontrol only on the top of the form. I found...
3
by: vitaly.tomilov | last post by:
I'm using an ASP.NET form to display data from my database table, and I'm doing it in the following way: XmlDataDocument doc = new XmlDataDocument(mydataSet); XPathNavigator nav =...
10
by: Water Cooler v2 | last post by:
I've asked myself this question in the past but couldn't afford more time to it (I program other languages for my bread and butter), so I'll ask now since it's never too late. What does the...
5
by: Ian Bicking | last post by:
I got a puzzler for y'all. I want to allow the editing of functions in-place. I won't go into the reason (it's for HTConsole -- http://blog.ianbicking.org/introducing-htconsole.html), except that...
0
by: Terry Reedy | last post by:
Arash Arfaee wrote: Python does not have 'in-place operators'. It has 'augmented assignment statements' that combines a binary operation with an assignment. *If* the target being rebound is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.