Solved

CSS alignment issue

Posted on 2012-04-11
11
172 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

744 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

10 Experts available now in Live!

Get 1:1 Help Now