Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

One troublesome CSS issue with IE

Featured Replies

Hi, I'm having one CSS issues with MSIE 6,7,8... it is simple and I've searched all over internet but can't find a solution. Please help!

 

Attaching screenshots from IE and a standard browser like FF, Opera etc. I'm using H4 and H2 tags to highlight the text.

post-21071-030858100 1279137978_thumb.png

post-21071-054651500 1279137985_thumb.png

Remember different browsers can have different 'default' values for a number of CSS attributes so make sure you always define anything that can cause differences in a situation like this. Here it looks like the text size is different, and I would also define margin and padding too if you haven't done a rest at the top of your CSS code. The following is usually sifficient:

 

* { margin:0; padding:0; }

  • Author

Thanks a lot for your replies!

 

I have already defined margin and padding... strangely does not helps.

 

Global resetting does not helps because it sends my entire page into chaos.

  • Author

Yes sure... people may be surprised :D

 

#mainhead {background: #000000; border: 0.1em solid #0066CC; color: #DBEDF9; font-size: 16px;  overflow: hidden; padding: 0.5em;}
#mainhead a {color: #0066CC;text-decoration: none;}
#mainhead a:hover {background: #DBEDF9; color: #3D3C3C;}
/* controls all blue headings */
#mainhead span.cat, #foot h3 {color: #23A2D7; font-size: 20px; font-weight: bold; letter-spacing: 1px;}
#mainhead h5 {font-size: 16px;}
#mainhead ul li ul {margin-left: 3px;}
#mainhead ul.sidebar_list {padding: 0.5em 3px 3px 3px;}
#mainhead li.widget .widget_box {background: none; border: 3px;margin:0; padding:0;}
#mainhead .textwidget p {line-height: 22px; margin-bottom: 3px;}
#mainhead .textwidget .avatar {margin-top: 3px;margin:0; padding:0;}
#mainhead .col {float: left; list-style: none; width: 31.3%;padding-left:1em;}

Yes sure... people may be surprised :D

 

#mainhead {background: #000000; border: 0.1em solid #0066CC; color: #DBEDF9; font-size: 16px;  overflow: hidden; padding: 0.5em;}
#mainhead a {color: #0066CC;text-decoration: none;}
#mainhead a:hover {background: #DBEDF9; color: #3D3C3C;}
/* controls all blue headings */
#mainhead span.cat, #foot h3 {color: #23A2D7; font-size: 20px; font-weight: bold; letter-spacing: 1px;}
#mainhead h5 {font-size: 16px;}
#mainhead ul li ul {margin-left: 3px;}
#mainhead ul.sidebar_list {padding: 0.5em 3px 3px 3px;}
#mainhead li.widget .widget_box {background: none; border: 3px;margin:0; padding:0;}
#mainhead .textwidget p {line-height: 22px; margin-bottom: 3px;}
#mainhead .textwidget .avatar {margin-top: 3px;margin:0; padding:0;}
#mainhead .col {float: left; list-style: none; width: 31.3%;padding-left:1em;}

 

Surprised??

 

Your html?

You're defining a list with one list item which has lots of h4 tags in it... it's not the way I'd do it.

 

This is a section of your code from the area you're having problems with:

 

<ul class="sidebar_list"> 
				<li id="text-7" class="widget widget_text">			<div class="textwidget"><h2><strong>Education</strong></h2> 
<h4><a href="http://blog.thetradersforum.net/list-of-financial-education-providers-in-india" target="_blank">List of financial education providers</a></h4> 
<h4><a href="http://blog.thetradersforum.net/certifications-and-courses-fesible-in-india" target="_blank">Trading related courses feasible in
India</a></h4> 
<h4><a href="http://blog.thetradersforum.net/all-about-forex-trading-in-india" target="_blank">All About Forex Trading</a></h4> 
<h4><a href="http://blog.thetradersforum.net/category/education" target="_blank">[read all articles in this category]</a></h4></div> 
	</li> 
			</ul> 

 

Each <h4> should be an <li>. If you try that and then define a line height it might work better.

  • Author

thnx minkie for giving your time... I'm attaching a screenshot how it looks on MSIE without h4 tags. The text appears just too smalll. It apppears normal on (almost) every other browser.

post-21071-050151900 1279289935_thumb.png

Have you actually defined a font-size and line-height for your list?

 

Can you repost your amended code?

  • Author

fontsize, background color... everything I defined as given in previous code... but nothing appears.

 

BTW should have mentioned this earlier... it is a wordpress thesis theme website.

Ok - to test you're changing the right area of CSS - change the text to a bright colour and see what happens. That's the first thing to identify, as it sounds as if you're not changing the right area of css.

 

I meant re-post your amended html.

  • Author

As I posted the code, even the background color(black) does not appear. After global resetting everything appears right but the overall page goes into chaos.

For the code posted first, some changes are reflected and some not. I guess the problem is because of Thesis widget structure. I'll try checking code of the 'text' widget and get back.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.