Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

CSS Gurus: Quick Help

Status
Not open for further replies.
Joined
May 18, 2006
Posts
5,943
Reaction score
103
Any CSS Experts here? :)

I have a <div> with content that wouldn't display the desired content vertically at the top of the page. After fiddling around with various options I discovered that removing the
Code:
clear: both;
in the CSS fixed the issue, in everything but IE7.

IE7 still stubbornly refuses to display the content at the top of the page. Tried adding
Code:
vertical-align:top;
etc too, no joy.

Any ideas?!

Thanks all. :)
 
Whats the url ? PM me it if you don't want to post it..

Hi Tricky - thanks for that. :) Unfortunately can't post it, as it's in offline mode to all but logged in admin. :cool:

Is there another way?
 
I have had the same probs with ie7, after hours i gave up and thought how many people are still on ie7 and thought sod them haha

i know not the best but sometimes its really not worth it, only thing i can think of doing is email the css and html file to someone to look>
 
I have had this problem before, trying to remember the exact solution.

where does it show in ie7? have you tried shrinking the width of the div next to it, to see if its a padding issue?
 
Last edited:
Many thanks for all the help everyone, it's much appreciated.

I understand it's difficult to give exact advice without seeing it. I might have to try and get some screenshots/code up if it helps.

Anyway, been experimenting.

If I use CSS as follows:
Code:
.holder {
	width: 100%;
	height: 100%;
	background: transparent;
	position: relative;
}

- All looks fine on Chrome, FF, etc with the <div> content. On IE7, the <div> content is not vertically aligned to the top though and falls downwards as usual.

If I change this to a small width, e.g 1%, say:
Code:
.holder {
	width: 1%;
	height: 100%;
	background: transparent;
	position: relative;
}

- All looks fine on IE7, but messes up the other browsers.

Very strange - I hate IE! :roll:

Cheers all - any ideas?! :cool:
 
Pretty sure your going to have to produce a seperate stylesheet for IE7 which unfortunately is the norm. You've got my contact details if you need any help.
 
Pretty sure your going to have to produce a seperate stylesheet for IE7 which unfortunately is the norm. You've got my contact details if you need any help.

Thanks Tricky1. :)

It's frustrating, as it's only a small bit of .css in question, but if that's the only way...! :D
 
You only have to add the elements that you want to override from the main stylesheet, not the whole thing..
 
You only have to add the elements that you want to override from the main stylesheet, not the whole thing..

Yeah, all done now, I was just moaning I had to do it, lol. :D

Added a conditional comment <!--[if IE 7]> etc and that seems to have done the trick.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

No members online now.

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom