Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

website - CSS question

Thread Tools
 
Search this Thread
 
Old 06 August 2003, 05:59 PM
  #1  
bing-bonger
Scooby Regular
Thread Starter
 
bing-bonger's Avatar
 
Join Date: Nov 2001
Posts: 171
Likes: 0
Received 0 Likes on 0 Posts
Post

How do I remove the space under the < h1 > tag using CSS in netscape. If I use the below code it works fine in i.e but not in netscape, any ideas why???

Code:-

H1 {
font-family: Arial Black, Arial, Helvetica, sans-serif;
font-size: 12pt;
color: #000000;
font-weight: normal;
margin-bottom: 0px;
}

I have 2 style sheets 1 for i.e and another for ns and a browser detection script with works fine.

any help would be great....

thanks...........
Old 06 August 2003, 06:17 PM
  #2  
ianmiller999
Scooby Regular
 
ianmiller999's Avatar
 
Join Date: Feb 2003
Posts: 1,285
Likes: 0
Received 0 Likes on 0 Posts
Post

This site is very useful

http://www.w3schools.com/css/
Old 06 August 2003, 08:41 PM
  #3  
Fatman
Scooby Regular
 
Fatman's Avatar
 
Join Date: Aug 2002
Posts: 2,390
Likes: 0
Received 0 Likes on 0 Posts
Post

I reckon a detection script and two CSS files is the best option. The two browsers do treat CSS files very differently, as I'm sure you're aware.
Old 07 August 2003, 08:50 AM
  #4  
AdrianFRST
Scooby Regular
 
AdrianFRST's Avatar
 
Join Date: Oct 2000
Posts: 368
Likes: 0
Received 0 Likes on 0 Posts
Post

What I would do is create a class in your CSS called "heading1" or something, then set the font size, face, colour etc you have for h1.

Rather than have:

<h1>This is a heading</h1>

use:

<span class="heading1">This is a heading</span>

That way you get the presentation you require without the associated margins / spacing of the h1 tag.
Old 07 August 2003, 10:46 AM
  #5  
RichB
Scooby Regular
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Post

The only thing with that is that a H1 tag would hold more weight than the span tag when being index by certain search engines.

(That was what I was led to believe anyway...)

Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
LostUser
Non Scooby Related
11
29 September 2015 11:00 AM
jobegold@hotmail.co.uk
ScoobyNet General
2
27 September 2015 09:44 PM



Quick Reply: website - CSS question



All times are GMT +1. The time now is 12:46 PM.