Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > a basic css-related query

Reply
Thread Tools

a basic css-related query

 
 
cricketunes@yahoo.com
Guest
Posts: n/a
 
      05-13-2006
Hi folks,
I am a newbie to CSS and I need to modify my page.
I have this Title tag which goes:

PostTitle{font-size:18px;font-weight:bold}


I want to have a blank line after each PostTitle entry.


How should I modify the PostTitle definition so that I automatically
get a blank line for each title?


Thanks,
Crickie

 
Reply With Quote
 
 
 
 
jb
Guest
Posts: n/a
 
      05-13-2006
wrote:
> Hi folks,
> I am a newbie to CSS and I need to modify my page.
> I have this Title tag which goes:
>
> PostTitle{font-size:18px;font-weight:bold}
>
>
> I want to have a blank line after each PostTitle entry.
>
>
> How should I modify the PostTitle definition so that I automatically
> get a blank line for each title?
>
>
> Thanks,
> Crickie
>


manually add a <br/>
 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      05-14-2006
In article <Tlu9g.70418$_> ,
says...
> wrote:
> > Hi folks,
> > I am a newbie to CSS and I need to modify my page.
> > I have this Title tag which goes:
> >
> > PostTitle{font-size:18px;font-weight:bold}



First would advise you not to set your font size in pixel but in a ratio
of the base font, either in percentage or em's.


> > I want to have a blank line after each PostTitle entry.
> >
> >
> > How should I modify the PostTitle definition so that I automatically
> > get a blank line for each title?
> >
> >
> > Thanks,
> > Crickie
> >

>
> manually add a <br/>


No.

margin-bottom: 1em;

--

Jonathan
 
Reply With Quote
 
sunil
Guest
Posts: n/a
 
      05-14-2006
You can add h1 ..h6 tags It will automatically shows the title in a new
line, why this post title?
make this as
h1
{
font-size:18px;font-weight:bold;
}

thats enough

 
Reply With Quote
 
sunil
Guest
Posts: n/a
 
      05-14-2006
add <h1> tag instead of this PostTitle

h1{
font-size:18px;font-weight:bold
}

 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      05-14-2006
wrote:

> I am a newbie to CSS and I need to modify my page.
> I have this Title tag which goes:


> PostTitle{


If you are writing your page in HTML, then you can't do this. HTML has a
defined set of elements that you can use, and PostTitle is not among them.
It also has the perfectly good h1 to h6 set of heading elements.

If you are writing in a custom XML format, then I strongly suggest you
reconsider. Browser (and search engine) support is much better for HTML
then for unknown XML formats.

> font-size:18px


Pixels for font sizing is considered harmful.
http://css-discuss.incutio.com/?page=FontSize

> I want to have a blank line after each PostTitle entry.


Adding display: block will probably do what you want, but writing good HTML
would be a better bet.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TurboTax Basic vs. Taxcut Basic? Sharp Dressed Man Computer Support 1 01-12-2009 12:52 PM
What is the difference between Visual Basic.NET and Visual Basic 6? Jimmy Dean Computer Support 3 07-25-2005 07:05 AM
Re: Python interpreter in Basic or a Python-2-Basic translator. rrr@ronadam.com Python 0 05-02-2005 01:48 PM
Python interpreter in Basic or a Python-2-Basic translator. Engineer Python 6 05-01-2005 10:16 PM
Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET Jaime MCSD 2 09-20-2003 05:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57