SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 8th, 2003, 06:27 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
positioning question for CSS and opera

Hi
I really hope that somebody can help me because I am out of ideas and cannot find a solution...

I have set up the page to have a box floated in the middle of the browser window (like ALA)

There is an image that is floated on the left of this box and is most of the height of the box.

Next to the image are two floated boxes (set with margin: 0 23px 0 23px for the first box and 0 for the second) that are about 2/3s of the height of the image and all three floated divs align along their top edges - i.e. the image and the two boxes. No problems with any of this.

Beneath these two floated boxes is a div for a box (position: relative; margin: 0; left: 23 px; )

In IE and mozilla this box appears where it should, i.e. 23 pixels to the right of the original floated image beneath the two floated boxes all nicely aligned.

In opera is where there are problems. The relatively positioned box still appears beneath the 2 floated boxes but sits on top of the bottom portion of the floated image 23 pixels from the left edge of the main box, i.e. it is ignoring the part that the floated image plays in flow of the page (i think)

if i set left for the relatively positioned box to a value compensating for the floated image then it will render ok in opera and IE - but is now that many pixels to the right in mozilla.

i've tried quite a few things to correct this but i'm shooting in the dark really and nothing has worked so i'm hoping one of you knows how to fix this (and that you can understand my waffling explanation......)

thanks anyway

jim
__________________
On a nationwide tour - back next year as champions.

Last edited by billybonds : November 8th, 2003 at 09:57 AM.

Reply With Quote
  #2  
Old November 8th, 2003, 07:27 AM
mushie mushie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 58 mushie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
can i see your code please - inc the layout if possible, its hard to visualise without it

Reply With Quote
  #3  
Old November 8th, 2003, 08:39 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
it might be quicker if i point you at the page (tell me if the code is better)

page

css

thanks

jim

Reply With Quote
  #4  
Old November 8th, 2003, 10:41 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,470 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 53 m 8 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
I have not yet viewed the page in Opera, but I will try to get to that later. Lemme take a look in that browser and get back to you. Nice site, though...

Chris
__________________
Pop, pop, fizz, fizz, oh what a relief it is!

Reply With Quote
  #5  
Old November 8th, 2003, 11:43 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
thanks Chris (and thanks for the kind words - always nice to hear!!)

jim

Reply With Quote
  #6  
Old November 8th, 2003, 08:28 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,470 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 53 m 8 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
Hmmmmm... Ok, I took a look in Opera. Interesting problem. This is why I hate Opera! Have you tried changing the the class contentB to "position: absolute;"? Try that. It might get the box to show up in the right place (next to the boy banner image), but it might screw up the overall positioning, in which case, you'll have to play with all the settings (right, top, etc...). Not sure if this'll work or not. Lemme know.

Chris

Reply With Quote
  #7  
Old November 9th, 2003, 06:07 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
hi Chris

yeah i did that - i think i must be missing a trick with absolute positioning because while i can position the element in the correct place, when i change resolution the image moves... i don't really understand what to do about it. Ah well - onwards and upwards......

thanks for looking,

jim

Reply With Quote
  #8  
Old November 9th, 2003, 06:17 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,470 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 53 m 8 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
Which image moves? All of them?

Reply With Quote
  #9  
Old November 9th, 2003, 07:03 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
Sorry - image was the wrong word - I meant contentB

When i tried it - i set an absolute position for ContentB so that it would be positioned the same for all the browsers. it did that but when i then tried it in a different resolution contentB shifted with the LHS of the browser window rather than the page content, which i suppose is what absolute positioning is supposed to do. I suppose this is because my content is centred in the window....

jim

Reply With Quote
  #10  
Old November 9th, 2003, 07:04 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
p.s. or maybe i just don't geddit!!

Reply With Quote
  #11  
Old November 10th, 2003, 06:58 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
just wanted to get this back the front page as i'm still looking......

Reply With Quote
  #12  
Old November 10th, 2003, 10:42 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,470 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 53 m 8 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
I copied and pasted everything onto my server to test. Nothing worked. Sorry, out of ideas...

Reply With Quote
  #13  
Old November 10th, 2003, 10:47 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
hi Chris

thanks a lot for trying....

yeah it's a real pain. i guess if i can't figure it out soon then i'll have to try and change the way i do it completely.

never mind. it's all good practise!!

jim

Reply With Quote
  #14  
Old November 12th, 2003, 09:30 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
problem solved

thanks to a kind man on CSS-discuss called Big John

"Rather odd.

Assuming it is the properties on the box causing the variance
I removed the positioning from the scrolling box and wrapped
it in a simple div, and found that margining or padding the
left side of that div does what you need. IE positions slightly differently, but it may not be enough to matter.

BTW, it is the "overflow: scroll;" that causes Moz to stop obeying the float specs! I didn't know about that bug. Apparently, in Moz when a div has scrolling the entire div acts like it was inline, because it stays out from
under the left float. Wow, a real live Mozbug! :-D
HTH
Big John"

(in case you were interested in the solution....)

jim

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > positioning question for CSS and opera


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |