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

How to fix Headings ?

<div class="vijest">&nbsp;&nbsp;&nbsp;
<b>Heading...</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;<i>||
Published: 24.06.2008. </i>||</div>
Hi All!
How to remove this empty spaces ? The "Heading" would need to be bolded and
aligned left as it is. and "Published" is on the right side of the stripe.
How to remove all this empty spaces which i put there cos i didn't know for
a better solution ? I suppose something with margins and paddings...but
that's what bothering me, because i have restricted window by javascript in
which links are opened and then the margins and paddings don't stretch as
they should and the stripe line goes into next row... !?

Thanks for advices.
I'll be soon here !

C.



Jun 27 '08 #1
4 1357
catalyst wrote:
<div class="vijest">&nbsp;&nbsp;&nbsp;
<b>Heading...</b>&nbsp;&nbsp; ...
<snip mess>
How to remove this empty spaces ? The "Heading" would need to be
CSS:
h1 span { float: right; font-size: 40%; font-style: italic; }

HTML:
<h1><span>Published: 24.06.2008.</span>Header</h1>

--
-bts
-Friends don't let friends drive Windows
Jun 27 '08 #2
Scripsit Beauregard T. Shagnasty:
CSS:
h1 span { float: right; font-size: 40%; font-style: italic; }

HTML:
<h1><span>Published: 24.06.2008.</span>Header</h1>
I guess that would work, for some values of "work", except that date
notations like 24.06.2008 are bad practice on the WWW or any
international medium. When you write 04.07.2008, how are people supposed
to guess whether it is 4th of July or 7th of April?

The <spantext will appear in bold face by default, rather pointlessly.
If it's relatively unimportant and in smaller font size, why bold it?
You could fix this using font-weight: normal (and you should really
consider the <h1font size too, since some style sheet might set it
fairly small, and then 40% of that is...).

But the <spanmarkup is ominous. The publication date isn't really part
of the header (see the text "Header" - a placeholder for a header
obviously, so why should there be anything else inside <h1>?). The
following is both more logical and simpler to style:

HTML:

<span class="pubdate">Published: June 24, 2008.</span>
<h1>Header</h1>

CSS:

span.pubdate { float: right; font-size: 80%; font-style: italic; }

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

Jun 27 '08 #3
Jukka K. Korpela wrote:
Scripsit Beauregard T. Shagnasty:
>CSS: h1 span { float: right; font-size: 40%; font-style: italic; }

HTML: <h1><span>Published: 24.06.2008.</span>Header</h1>

I guess that would work, for some values of "work", except that date
notations like 24.06.2008 are bad practice on the WWW or any
international medium. When you write 04.07.2008, how are people
supposed to guess whether it is 4th of July or 7th of April?
You should address that comment to the OP - where I copied it straight
out of his mess of &nbsp;'s. The question was not about date formatting.

Do you think my quick illustration is as bad as the OP's?

--
-bts
-Friends don't let friends drive Windows
Jun 27 '08 #4

"Beauregard T. Shagnasty" <a.*********@example.invalidwrote in message
news:g3**********@registered.motzarella.org...
Jukka K. Korpela wrote:
>Scripsit Beauregard T. Shagnasty:
>>CSS: h1 span { float: right; font-size: 40%; font-style: italic; }

HTML: <h1><span>Published: 24.06.2008.</span>Header</h1>

I guess that would work, for some values of "work", except that date
notations like 24.06.2008 are bad practice on the WWW or any
international medium. When you write 04.07.2008, how are people
supposed to guess whether it is 4th of July or 7th of April?

You should address that comment to the OP - where I copied it straight
out of his mess of &nbsp;'s. The question was not about date formatting.

Do you think my quick illustration is as bad as the OP's?

--
-bts
-Friends don't let friends drive Windows

Thanks all for advices here, i'm in a mess now...
I'll try to excerpt somo of this and try it out, hope it'l help me!

bye.
Jun 29 '08 #5

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

Similar topics

20
by: Jeff Thies | last post by:
I'm working on yet another online editor, this allows non html savy people to add "blocks" that may contain paragraphs, headings, lists and images to the editable part of a template. The editable...
3
by: John Baker | last post by:
Hi: I know there are mixed views about the switchboard function, but i would like to consider using it anyway. One snag I have found is that you create a Main Switchboard, and put some headings...
3
by: Paula | last post by:
I need to do a summary using a crosstab query. The data has a Date field (Not named "Date"). I can do the Row Heading and Value but am having trouble with the Column Heading. The summary Columns...
7
by: Ellen Manning | last post by:
I've got an A2K report showing students and their costs. Student info is in the main report and costs are in a subreport for each student. The user inputs the program desired then only those...
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
2
by: Nenad Markovic | last post by:
Hi everybody, When executing a Crosstab Query I see only rows (defined in a row heading) that have values (defined in value field) in at least one column (defined as column headings). How can...
22
by: Spartanicus | last post by:
I wrote an article on HTML headings: http://codewallop.110mb.com/goodpractice/headingology.htm -- Spartanicus
0
by: petejones | last post by:
I have a directory of PDF files which contain Headings/Sub Headings and Page Numbers. I wish to write a script to open the PDF, read the Headings and any sub headings and write them out to a file....
2
by: neovantage | last post by:
Hey, i have found a code which generate headings at run time. here is my code which generate headings at run time <img src="generate-headings.php?w=125&amp;hd=Code" /> $im =...
2
by: neovantage | last post by:
Hey all, I have recently implemented a website using divs. i am having some issues in it which i am unable to solve them. So i need help as i am expecting positive response from here. Well first...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.