Solved

CSS alignment issue

Posted on 2012-04-11
11
173 Views
Last Modified: 2012-04-11
I am using z-index to overlay a few boxes on top of another section.  I'm having a difficult time aligning the "What We Do" section and the text below it inside the box to the left, even though the text-align is set to "left".  The site is www dot drivecore dot com.  Any help?
0
Comment
Question by:saturation
  • 6
  • 5
11 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 37833514
It's saying the shop is closed
0
 

Author Comment

by:saturation
ID: 37833519
Try now.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37833529
So what is it supposed to look like?  I'm kind of confused by your question.  Do you have an image of what it should be?
0
 

Author Comment

by:saturation
ID: 37833537
I don't, but basically, it should be left aligned inside that box with a bit of padding.   And the text below it should be as well...I haven't changed the color on the text yet, so it's a little blended with the background.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37833601
Try adding this:
text-align: left !important;

Open in new window


To the #carsectionright element in your CSS
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:saturation
ID: 37833800
I tried...No luck.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37833842
There might have been something else I did. I had it in FF though. Keep it in there and I'll look again.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37833862
Try wrapping that text in a <p> tag. Then give the p tag a text-align:left !important and let's see if that helps.

It may also be beneficial to use a CSS reset.  You are getting a lot of cross-browser misalignments because of it.
0
 

Author Comment

by:saturation
ID: 37834096
the text-align: left !important doesn't seem to be working...Any other ideas?  This seems like a bizarre issue, and it's happening on IE, FF, and Chrome.
0
 
LVL 30

Accepted Solution

by:
LZ1 earned 500 total points
ID: 37834115
You really need that CSS reset.

Add float:left; to the same tag and it should line up.
0
 

Author Closing Comment

by:saturation
ID: 37834753
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now