PC Review


Reply
Thread Tools Rate Thread

CSS positioning cross-browser (well IE, FF)

 
 
hzgt9b
Guest
Posts: n/a
 
      2nd Nov 2007
I've got html page with has a fixed height - there are five buttons on
the page. The page has a fixed, known height - but the width can
change. The five buttons should be arranged on the page as follows
(all buttons should always be 3px from the top):

"button1" - left edge always 3px from left side of the page
"button2" - left edge always be 5px to the left of "button 1:"
"button3" - buttons three and four should float (relatively) in the
middle of the page
"button4" - left edge always be 5px to the left of "button 3:
"button5" - right edge always 3px from right side of page

Button2 could float to the left of button1 - but I'd like to know how
to get it fixed to the right of button1 by 5px.
A key requirment is that buttons 3,4 are seperated by 5px and appear
to float together (not ever overlap)...


I've tried the following CSS - it works in IE but in FF the buttons
tops (buttons 3,4) don't align.
Anyone have any suggestions:

..Button1 {
position: absolute;
left: 3px;
top: 3px;
}
..Button2 {
position: absolute;
top: 3px;
margin-left: 10%; /* HOW DO I GET THIS BUTTON TO BE 5x FROM
Button1? */
}
..Button3 {
position: relative;
top: 3px;
margin-left: 43.5%; /* HOW DO I GET Button3,4 TO FLOAT
TOGETHER */
} /* AND STAY TOP ALIGNED AT
5px? */
..Button4 {
position:relative;
top: 3px;
}
..Button5 {
position: absolute;
right: 3px;
top: 3px;
}

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q29yZXkgQnJ5YW50?=
Guest
Posts: n/a
 
      2nd Nov 2007
Absolute positioning wil cause you some problems. http://www.iwdn.net would
probably be better for this type of question actually.

--
Corey R. Bryant
http://www.loudcommerce.com/ | http://www.merchantaccountshow.net/ |
http://www.mymerchantaccountblog.com/ | http://www.loudexpressions.com/


"hzgt9b" wrote:

> I've got html page with has a fixed height - there are five buttons on
> the page. The page has a fixed, known height - but the width can
> change. The five buttons should be arranged on the page as follows
> (all buttons should always be 3px from the top):
>
> "button1" - left edge always 3px from left side of the page
> "button2" - left edge always be 5px to the left of "button 1:"
> "button3" - buttons three and four should float (relatively) in the
> middle of the page
> "button4" - left edge always be 5px to the left of "button 3:
> "button5" - right edge always 3px from right side of page
>
> Button2 could float to the left of button1 - but I'd like to know how
> to get it fixed to the right of button1 by 5px.
> A key requirment is that buttons 3,4 are seperated by 5px and appear
> to float together (not ever overlap)...
>
>
> I've tried the following CSS - it works in IE but in FF the buttons
> tops (buttons 3,4) don't align.
> Anyone have any suggestions:
>
> ..Button1 {
> position: absolute;
> left: 3px;
> top: 3px;
> }
> ..Button2 {
> position: absolute;
> top: 3px;
> margin-left: 10%; /* HOW DO I GET THIS BUTTON TO BE 5x FROM
> Button1? */
> }
> ..Button3 {
> position: relative;
> top: 3px;
> margin-left: 43.5%; /* HOW DO I GET Button3,4 TO FLOAT
> TOGETHER */
> } /* AND STAY TOP ALIGNED AT
> 5px? */
> ..Button4 {
> position:relative;
> top: 3px;
> }
> ..Button5 {
> position: absolute;
> right: 3px;
> top: 3px;
> }
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-browser Real-time Message, Remote JavaScript Callback, and Monitoring Browser States msdngroup Microsoft ASP .NET 5 30th Jan 2008 06:26 PM
Re: Cross-browser Real-time Message, Remote JavaScript Callback, and Monitoring Browser States msdngroup Microsoft ASP .NET 0 15th Dec 2007 08:38 PM
CSS positioning cross-browser (well IE, FF) celoftis Microsoft ASP .NET 5 21st Nov 2007 04:45 AM
Calling external program from browser with parameters - cross-browser Jeff Microsoft ASP .NET 13 6th Oct 2007 09:03 AM
Making a Cross-Platform Cross-Manufacturer Browser Plugin? Chris Shearer Cooper Windows XP Internet Explorer 3 17th Nov 2006 02:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:07 AM.