473,578 Members | 3,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EASY...Newbie Question

2 New Member
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 1334
Banfa
9,065 Recognized Expert Moderator Expert
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
1915
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
1203
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 framework 1.1 to VS.NET 2005 Framework 2.0? Will everyting work as it used to, or do I have to re-write some of my code? Thanks Shawn
3
391
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
1907
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 numbers inputted to int's so I can do the calculations. Also I need to figure out how to pop up an error box if the charactors entered in those...
5
1366
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 that does _not_ start with "#"....so that I can replace it with something else later using Regex.Replace(). An example file would look something...
1
272
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 the SQLServer database. I suppose I can 1) iterate through the column names of the .Net dataset to generate an SQL "CREATE TABLE" statement to...
3
1002
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 service="ILifeMain" type = "Life1"> <FirstName>Sheila</FirstName> <Age>65</Age> <Relation>spouse</Relation> </L1>
5
1136
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 newbie. So, unable to take a call as to how-important or desirable the newer language features are -- so whether to write my app for v2.5 of Python,...
3
2337
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 Oxygen, to HTML kit, et cetera. I am more confused than ever. here's my quandry. I was sent a file and told that we need to get the data into a...
5
1395
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 get a long skinny button that extends to the right side of the browser. This does not appear to happen with other controls. Any idea why it happens...
0
7847
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8125
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8290
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7874
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6522
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5342
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3781
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3798
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.