473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

EASY...Newbie Question

I'm new to PHP and still pretty inexperienced when it comes to everything else in web development. I'm just now learning the art of style sheets, and that's where my problem is. When I apply the following styles with <h6>...code...</h6> after I did the <link href=...etc> to link in the stylesheet.

My problem isn't that the styles aren't applied, but that they are doing things I didn't expect them to do...in 3 different browsers. They add an extra line. As if I had put a <br /> right next to the text, my page shows up with WAY too many line breaks.

Here's what my style in my style sheet looks like. I'm using Style Master to help me with format (because I'm sick of the cross-browser problems I had when I tried doing it on my own):

h5 {font-size: 1em;
font-family: Verdana, Arial, sans-serif;
font-weight: bold;
text-align: left;}

h6 {font-size: .75em;
font-family: Verdana, Arial, sans-serif;
font-weight: bold;
text-align: left;}

h7 {font-size: .75em;
font-family: Verdana, Arial, sans-serif;}

It happens when I apply the "h6" style. My text size changes the way I want it to, but it creates a big space around my styled text, like the following:

Title:

Network Outage

Location:

IAB

Affected Users:

Everyone in the South West Part of the Building

I just want the text to appear right after the colons, not on another line
Jun 14 '06 #1
1 1328
Banfa
9,065 Expert Mod 8TB
Most of the header tags (h1 ... h6) and the p tag have margins preset on them as their normal style.

To remove this space apply the style

margin: 0;

To you header tags and may be to the p tag too.

I trust you have a good css reference but if you don't I use this site http://www.w3schools.com
Jun 14 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Derek Wickersham | last post by:
Easy newbie question. I've searched all the PHP documentation I can find, but can't find an answer. What does the "@" mean, in this context: @mysql_select_db( "scripts");
4
by: Shawn | last post by:
Hi. When I started using VS.NET 2003 there was no problem upgrading all my projects to VS.NET 2003 Framework 1.1. Everything worked as it used to under framework 1.0. Is it easy to upgrade from...
3
by: Michael | last post by:
Hi, In some code in my header file I have: typedef struct{ int book_id; char title; char author; int year; int price;
4
by: robert.b.walden | last post by:
Hello, Easy question from a newbie. I have text boxes which collect users input and on the click of a button do some calculations and output to another text box. I need to easily convert the...
5
by: sb | last post by:
Hello, I have a text file which contains plain text with the normal carriage-return/linefeed line terminators. With that file I want to find any occurence of "%R" (case-sensitive) on any line...
1
by: Frankz | last post by:
Hi, I am new to this group so forgive me if this question sounds too newbie. :-) I am writing a C# program. One of its functionalities is to use a .Net dataset to create and populate a table in...
3
by: Valery | last post by:
In the following XML: <?xml version="1.0" encoding="utf-8" ?> <Plcy service="ILiability" boId ="LifePolicy, 1"> <Prem service="IPremium" boId ="RegularPremium, 1"></Prem> <L1...
5
by: Banibrata Dutta | last post by:
Hi, I've gone through the list of "language differences" between 2.3 / 2.4 & 2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of CPython, and I consider myself still very very...
3
Lokean
by: Lokean | last post by:
Sorry for this newbie question, this is not my realm of expertese. I have searched google, tried several applications that claim they can do this, such as Mapforce, which I found confusing, to...
5
by: Dave | last post by:
I am new to Visual Web Developer 2005 Expres. I am using absolute positioning and every time I add a button control to my web form its width extends all the way to the edge of the page. IOW I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.