This is a discussion on "div concern" within the Web Page Design section. This forum, and the thread "div concern are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
div concern
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
div concern
I have put div tags under a few of my paragraphs to align right some text. There is a <p>text</p> then the div tags to align right a persons name and suburb they live in.
My question is.. Is it ok to have the div tags after each paragraph or is there a better way to have a persons name align right, be bold etc... There are currently 5 paragraphs and each with their own set of div tags afterwards. Kymberly |
|
#2
|
||||
|
||||
|
Re: div concern
Hi kym.
Is there any way you could post your existing code or give us a URL to look at? I do think you have misunderstood the meaning of div tags though to be honest.. Div tags are meant to contain your paragraphs.. not offest them. By putting your paragraph in a div you can then use CSS to make it do whatever you like. Position, size, colour, font, background colour/image... anything. Please PM me if you need any more help.
Last Blog Entry: Giving them what they paid for: A (sort of) Follow-up (Oct 15th, 2008)
|
|
#3
|
|||
|
|||
|
Re: div concern
Just a complement to the previous posting, You can also apply the class attribute to <p> tags, although <div> supports more options.
Cheers, Bruno Aun |
|
#4
|
|||
|
|||
|
Re: div concern
Thanks for that.
|
![]() |
| Tags |
| div, concern |
| Thread Tools | |
|
|