1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

changing classss in div or in style sheet

Discussion in 'CSS' started by chandan123, Jul 13, 2008.

  1. #1
    i have small problem wrt alignments of paragraphs

    here it goes

    i will make few posts blog post 1 , 2 , 3 ,4 ,5 etc

    now in my posts i will be keeping

    <div id="someidname">

    blog contents goes here


    but i havent written any id someidname in my blog

    so later if i want to make it is some sort of fonts , sizes

    can i able to achive this via stylesheet by making a suitable someidname entry ?
    chandan123, Jul 13, 2008 IP
  2. yankzilla

    yankzilla Peon

    Likes Received:
    Best Answers:
    Trophy Points:
    If you want to be able to change the font on ALL your posts at once - you can add class="post" to your div and add .post {css goes here} to the style sheet. No need to use ID unless it is post specific. ID's are used for single elements on a page, and classes are used multiple times per page.
    yankzilla, Jul 13, 2008 IP
    chandan123 likes this.
  3. chandan123

    chandan123 Prominent Member

    Likes Received:
    Best Answers:
    Trophy Points:
    thanks thats what i want i need to able to change via css later :)

    +rep added
    chandan123, Jul 14, 2008 IP