My code is working in every browser except safari. I can't figure out how to get it to work. First I need to detect safari in the html, and then compensate for the margin issues in safari. My code is:

<div style="margin-left:0%; display:inline;">
					Some text
				</div>
				
				<div style="margin-left:50%; display:inline;">				
					Text
                                        Text
				</div>

I want it to line up so "Some text" goes to the left, which it does in safari and the other browsers, but in safari the second div goes to the left, instead of lining up on the right. So "Text" is right next to "Some text" in safari instead of going to the right and using the margin.

Replace margin-left:50% with padding-left:50% .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.