473,395 Members | 1,915 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,395 software developers and data experts.

Floating left and right in Safari

2
I've seen a screen shot of my header graphic in Safari. (don't have Safari)

I'm coding using Firefox and IE.
In those browsers the behavior is consistent.

I have two floated graphics, one float:left inside div#headerLeft and one float:right, inside div#headerRight.
They're inside a div#header that has a background graphic.
These are all inside an absolutely positioned div#top.

In the browsers I've used the graphic/header takes all of the width of the body, which is what I want, with the float:left graphic all of the way left and the float:right graphic all of the way right, taking up 100% of the space.

In Safari, if someone could please confirm, the right graphic appears as though it's inline and right up against the left graphic and all to the left, which also sizes the background graphic in div#header to just cover only this smaller size.

Is there a better convention for floating graphics in Safari?
Do I need to add a display: command? ( I tried width:100% but that apparently didn't work.)

Most all of the pages have the same header system with the main exception being the index.html which has a few slightly larger graphics.

The beta site is at <a href='http://members.cox.net/david.silva">http://members.cox.net/david.silva<a>
The .css file used is products.css also on this site.

If you can lend some Safari insight, it would be most appreciated :)
Aug 28 '06 #1
1 4332
intuna
2
I'll try to figure out how to just post this code.
It must be too difficult a question, or no uses Safari here, or it's an obvious question, (or I'm just not patient enough ;) )

Here's the .html

[HTML]
<body>
<div id="top">
<div id="header">
<div id="headerleft">
<img src="images/jdslogo-300dpi-350w-wh.gif" width="350" height="58" alt="/**/" />
</div>
<div id="headerright">
<img src="images/header-creation-175h.gif" width="231" height="175" alt="/**/" />
</div>
</div>
</div>

<Lot's of other content>
</body>
[/HTML]

And here's the pertinent .css including the body tag, in case Safari is reacting to something in that:

Expand|Select|Wrap|Line Numbers
  1. body {
  2.     margin: 0px; /* Must leave in - fixes body overflow in IE */
  3.     padding: 0px; /* Must leave in - fixes body overflow in IE */
  4.     background-color: #FCFCFC;
  5.     background-image: url(images/ground_blue.gif);
  6.     background-attachment: fixed;
  7.     font-family: "Century Gothic", Helvetica, Tahoma, Arial, sans-serif;
  8.     font-size: small;
  9.     color: #00015E;
  10.     voice-family: inherit;
  11. }
  12. #top {
  13.     position: absolute;
  14.     top: 0px;
  15.     left: 0px;
  16.     display: block; /*just added for Safari - didn't work */
  17.     width: 100%; /*just added for Safari - didn't work */
  18. }
  19. #header {
  20.     background-image: url(images/header-bk-mag-narrow.gif);
  21.     background-repeat: repeat-x;
  22.     margin-top: 0px;
  23.     margin-right: 0px;
  24.     margin-bottom: 0px;
  25.     height: 75px;
  26. }
  27. #headerleft {
  28.     position: relative;
  29.     float: left;
  30.     top: 8px;
  31.     left: 10px;
  32.     height: 66px;
  33. }
  34. #headerright {
  35.     position: relative;
  36.     float: right;
  37.     top: 0px;
  38.     right: 0px;
  39.     bottom: 0px;
  40.     left: 0px;
  41. }
  42.  
Aug 29 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: François de Dardel | last post by:
...gives me trouble It is at http://mapage.noos.fr/dardelf/dardelf4/CD_ixcalc/Doc/FAQ.htm#errorbusy On the Mac, it looks fine under Safari...
3
by: David Ross | last post by:
I sometimes place a sidebar on a Web page, using the following: ..sideright { float: right; background-color: #fff; width: 40%; font-size: 90%; text-align: justify; margin-left: 1em;...
3
by: JHR | last post by:
Hey all, I'm trying to make a sidebar box float to the right of various items, and for those items to wrap if a user shrinks his browser window. Instead, in every browser I've tried except for...
2
by: fleemo17 | last post by:
I thought this would be very simple to set up in CSS, but I'm having difficulty making it work in several browsers. I'd simply like to have an image float at the upper right hand corner of my web...
7
by: Alex | last post by:
Hi Everone, I need some advice on how to setup 4 columns where the outside two are absolute (120px) and the inner two (side by side) are relevent (Fluid) and change with the screen. Here's my...
4
by: tbirnseth | last post by:
I'm having trouble between IE and FF. For once, IE behaves as I would expect, but FF doesn't. Basically I have a container with two floating DIVs in it. One floats left and the other right. I then...
5
by: jemcgui | last post by:
I've been building a site that has a quirk in it. It will display just as intended in IE but not firefox. The left "nav" div which is floating left will be forced down to the bottom of the page. The...
10
by: salmobytes | last post by:
My machine generated site displays navigation links (in a table td, alas, I'll fix that someday) at screen left, with main display in a td at screen right. Pages with lots of navigation links...
18
by: Shocky | last post by:
Hi there, I am trying to detect whether my IE6 users have pressed both right and left mouse buttons simultaneously in my Javascript code, by using: if(event.button==3) {alert("Both right and...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.