Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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. :)
 
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.
 
You only have to add the elements that you want to override from the main stylesheet, not the whole thing..
 
Status
Not open for further replies.

Rule #1: Be Respectful

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

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom