0

Hi,

I have a website is php+mysql and i would like to do some changes on css.
Ex. To add H1 and H2 tags.
Here is the css where i want to add the h2 and i dont have idea how.
If you need a more detailed description let me know please.
Thanks a lot

A.cat_parent_link { /* The parent category name */

    font-family: "verdana", sans-serif;
    font-size: 10pt;
    font-weight: bold;
    color: #0000FF;

Edited by mike_2000_17: Fixed formatting

2
Contributors
10
Replies
11
Views
6 Years
Discussion Span
Last Post by tutorim
Featured Replies
  • The <h1></h1> tag is coded in by the designer....into the html not the css. Then you can style the h1 tag WITH css. Like it is here in your site: [CODE]h1, h3 { font-size: 14px; font-weight: bold; margin: 0; padding: 0; }[/CODE] Dont get confused and mix up what css … Read More

0

Are you saying you just want to style a heading tag?

Please explain further and you can even post your code using the code button or better a link to your site.

0

Yes making some text from regular to H1 or H2
Sry for not being specific.

link is here. http://bit.ly/eKBmPX

and all the links on the right side starting with accounting and finishing with transportation i would like to make them H2

Edited by tutorim: n/a

0

Not sure why you would want to make them all heading element. They are lists and really should be in an unordered list. But all you have to do is wrap each one like so:

<h2>Accounting / Finance/ Ban...</h2>

0

Ok thx but using this css

A.cat_parent_link { /* The parent category name */

	font-family: "verdana", sans-serif;
	font-size: 10pt;
	font-weight: bold;
	color: #0000FF;

}

what should i change or add the

<h2>Accounting / Finance/ Ban...</h2>

<h2>Accounting / Finance/ Ban...</h2>

0

I'm not following you. You cant use CSS to "insert" html into your document, if thats what you're trying to do.

Again, maybe I am misunderstanding you.

0

Well.. maybe i am not expressing myself as it should be.
Let me understand. Those categories i cannot make them H2 using css?

thx

Edited by tutorim: n/a

0

You cant insert any html tags into a page using CSS no. CSS is used to style already existing html elements including tags classes and id's.

Now, what you can do if you want to emulate what the heading tag looks like is something like you pretty much have.

font-weight:bold;
font-sixe: 10px;

You can increase the 10px to something higher, and the font-weight can be bolder instead of just bold.

1

The <h1></h1> tag is coded in by the designer....into the html not the css. Then you can style the h1 tag WITH css. Like it is here in your site:

h1, h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

Dont get confused and mix up what css is and does and what html is and does. You should do some reading here for html, and here for css to get some basic understanding of each.

0

Okay. Very ..to the point. I'll have a look, print out and have some bedtime reading.
Thanks a lot.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.