473,320 Members | 1,856 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,320 software developers and data experts.

headline question..

hi,

what is best way when you need a headline w/large font and a paragr
right underneath it with NO blank lines in between?

<h1>, <divinsert autom. spacing below them.. <spanyou can't do
margins or padding..

so what is best way to do this.. (apart from tables..)

thank you very much...


Nov 1 '07 #1
5 1816
On Thu, 01 Nov 2007 21:13:46 +0100, maya <ma********@yahoo.comwrote:
what is best way when you need a headline w/large font and a paragr
right underneath it with NO blank lines in between?
Setting the the margin-bottom and margin-top of those 2 repectively to 0.
And just use an Hx & P element if that's semantically correct. The more or
less 'anonymous' div and span are grossly overused.
--
Rik Wasmus
Nov 1 '07 #2
Scripsit maya:
what is best way when you need a headline w/large font and a paragr
right underneath it with NO blank lines in between?
To learn and use the basics of CSS. Instead of asking to be spoonfed, read
at least a short good tutorial on CSS.

I'll just point out some incorrect assumptions:
<h1>, <divinsert autom. spacing below them..
While <h1elements generally have some bottom margin set in browsers'
default style sheets, <divelements haven't.
<spanyou can't do margins or padding..
Oh yes you can. Vertical margins are ignored, though, unless you set the
display property to a value other than the default (inline).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Nov 2 '07 #3
Jukka K. Korpela wrote:
Scripsit maya:
>what is best way when you need a headline w/large font and a paragr
right underneath it with NO blank lines in between?

To learn and use the basics of CSS. Instead of asking to be spoonfed,
read at least a short good tutorial on CSS.

I'll just point out some incorrect assumptions:
><h1>, <divinsert autom. spacing below them..

While <h1elements generally have some bottom margin set in browsers'
default style sheets, <divelements haven't.
><spanyou can't do margins or padding..

Oh yes you can. Vertical margins are ignored, though, unless you set the
display property to a value other than the default (inline).
ok, did this:
http://www.mayacove.com/design/test.html

did with div, set both margin-bottom and padding-bottom to 0.. but I
still see empty space beneath headline.. (<spantag ignored both
padding & margin settings..)

would appreciate suggestions...

thank you very much..

Nov 2 '07 #4
maya wrote:
ok, did this:
http://www.mayacove.com/design/test.html

did with div, set both margin-bottom and padding-bottom to 0.. but I
still see empty space beneath headline.. (<spantag ignored both
padding & margin settings..)

would appreciate suggestions...
Delete the <br at the end of
<div class="headlineHome">Article Headline ... viderer</div><br >
--
John
Pondering the value of the UIP: http://improve-usenet.org/
Nov 2 '07 #5
maya wrote:
>
http://www.mayacove.com/design/test.html

did with div, set both margin-bottom and padding-bottom to 0.. but I
still see empty space beneath headline

would appreciate suggestions...
Use better markup. That div is obviously a heading element, so use the
applicable <hx>. What follows that is obviously a paragraph of text, so
put it in <pmarkup and drop the bogus <br>.

h2 {margin-bottom:0} /* whatever heading level applies */
p {margin-top:0; margin-bottom:1em}

--
Berg
Nov 3 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: melledge | last post by:
XTECH 2005 Program Available - Web Technologies, Browsers, Open Data, and XML Headline Event XTECH 2005 http://www.xtech.org takes place 24-27 May at the RAI Centre, Amsterdam, The Netherlands....
3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
6
by: hsahealthsavings | last post by:
Does any one have an idea of why my page always appears differently in Mozilla 2.0 versus Explorer 6.0. Here is the code below. You'll notice that the Headline appears much lower in Mozilla than in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.