CSS question
- Started
- Last post
- 22 Responses
- Shepstar15
I made a google maps for a customer of mine, but I have a css problem.
Does anyone got a solution? the problem is at the bottom with the addresses, the first row is always going down like steps instead of being align at the top.Thanks guys.
- 7point340
display: inline; ?
- Shepstar150
ooops sorry, forgot to post the link ;)
- 7point340
set position:relative; and top: 0; see if that works?
- on the single-add class7point34
- nope didn't work
Shepstar15
- D_Dot0
Is it the break tags you have after each one?
- that's my only other guess...7point34
- I don't have one at the end!Shepstar15
- Shepstar150
hi 7point34, i changed the class to id because i thought it might work. but now i tried everything you suggested, but still no change.
the second row works fine, how can that be?
- well class vs. id wont sort the positioning issue. it's just not correct to use the same id multiple times7point34
- you're right, that why i changed it backShepstar15
- Shepstar150
tried taking out the breaks in the address, but still no change
- 7point340
also i'm not sure but you might be missing a </div>
- from which beginning <div .. do you mean. the page one, is at the very end.Shepstar15
- the last lines before the script... put another at the end... i don't think "address" gets closed7point34
- D_Dot0
try lowering the left margin in the address div to like 50 just to see if they're getting pushed by the size you set.
- Shepstar150
yes they went 20px to the left.
- Shepstar150
Perhaps anyone has a workaround solution, instead of finding an error, but tables won't work either i think.
- D_Dot0
ok well i took out the breaks in firebug and it worked just fine. So not sure what you're seeing.
- Shepstar150
- on a mac with firefox and safari and coda, won't stay in a line
Shepstar15 - you still have the break tags after each div in the html. Take that out.D_Dot
- great now it works, but how do i make the linebreaks than?Shepstar15
- why do you need line breaks after each div? or do you mean inside them?D_Dot
- yep inside
Shepstar15 - ah ok got that, now i know what you meant
Shepstar15
- on a mac with firefox and safari and coda, won't stay in a line
- Shepstar150
Ok it works now, but how did you do the line breaks then? with me now it is just one long text.
secondly do you have a how i can center the whole thing?
normally i use margin-left: auto; margin-right: auto;
but this time it didn't work.
- D_Dot0
you can keep the line breaks inside each div, you just don't need to put one after each div closing tag.
- Shepstar150
Thanks a lot quys, I really appreciate your help with that, sometimes you just sit in front of it and can't find those simple stupid errors, i looked at everything for like 2 hour before i posted this.
So again thanks guys
- Shepstar150
any ideas on how to center it the best on the page?
- D_Dot0
"put a div around everything
and set that to margin:0 auto;"7point34
- that's what the page div should doShepstar15
- you have to give it a width toostupidresponse