Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

CSS/Google Maps issue with Internet Explorer

  • 05-06-2008 06:18PM
    #1
    Closed Accounts Posts: 4,763 ✭✭✭


    Howyeh,

    I'm developing a website for a sandwich store chain and have run into an issue with the store location application which I've put together for the website. In every browser except IE the information bubbles in Google Maps open at the correct width and height, but in IE6 and 7 they expand to take up the full page's width. Here's two illustrative screenshots:

    Firefox, Safari, Opera, etc.

    Internet Explorer 6/7

    And here is the relevant CSS:
    /* Google Maps */
    
    #map {
    border: 1px solid #979797; 
    background-color: #e5e3df; 
    width: 658px; height: 450px; 
    margin: auto; 
    margin-top: 2em; 
    margin-bottom: 2em
    }
    
    #store {  
    	background: url('/jj/images/med.jpg') no-repeat left center;
    	margin: 1px auto;
    	padding: 1px;
    	width: 300px;
    	height: 65px;
    	/* Internet Explorer fix */
    	_width: 300px; /* IE Hack */
    }
    
    #store p {
    	float: left;
    	padding: 0 0 0 100px;
    	font-size:1.3em;
    }
    
    #store * {
    	margin: 0;
    	padding: 0;
    	text-decoration: none;
    	color: #000;
    }
    
    #store a {
    	color: #477b91;
    	font-weight: bold;
    }
    

    In honesty I'm fairly new to CSS scripting and I'm completely unsure whether there's something I need to include or exclude. :o

    EDIT: I've checked my own code and have run it through the validator.


Comments

  • Subscribers Posts: 9,716 ✭✭✭CuLT


    First guess would be the 100px padding. Try removing it.


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    That wouldn't work, unfortunately. The padding keep the text to one side of the logo image and removing that ruins all of the formatting.


  • Registered Users, Registered Users 2 Posts: 1,246 ✭✭✭deegs


    can i see it live?


  • Registered Users, Registered Users 2 Posts: 1,246 ✭✭✭deegs


    oh right i see it.

    EDIT:

    Gotta spilt now but your div store looks good in both its the "area" behind that is causing probs.

    I also wouldnt use any hacks, most CSS errors are easily remidied / avoided without hacks.


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    I resolved this myself by altering the first element as follows:
    .store {  
    	background: url('/jj/images/med.jpg') no-repeat left center;
    	margin: 1px auto;
    	padding: 1px;
    	width: 300px;
    	float: left;
    	height: 75px;
    }
    


  • Advertisement
Advertisement