Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2008, 03:20 PM   #1 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
h1 tag inside fieldset

Hi guys,

Is it possible to put an <h1> tag inside a <fieldset><legend> tags?

Well, I know that it is possible, but it doesn't look right even with the correct css styling. Am I missing something inside the css?

Thanks for your help.
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 05-01-2008, 03:57 PM   #2 (permalink)
Contributing Member
 
Join Date: 07-24-06
Posts: 625
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
It is definitely possible. You might be missing something in the CSS.
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-01-2008, 04:25 PM   #3 (permalink)
Contributing Member
 
factoring's Avatar
 
Join Date: 04-03-07
Location: Rhode Island
Posts: 312
iTrader: 1 / 100%
Latest Blog:
None

factoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nicefactoring is just really nice
This is the html code:

<fieldset><legend><h2>This is the text</h2></legend></fieldset>

CSS:

fieldset legend h2 { font-size: 110%; font-weight: bold; color:#AC6A0B; margin: 0 0 0 0; padding: 0 5px;}

Thanks for your help
factoring is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-01-2008, 04:31 PM   #4 (permalink)
Contributing Member
 
Join Date: 07-24-06
Posts: 625
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
CSS:

fieldset h2 { font-size: 110%; font-weight: bold; color:#AC6A0B; margin: 0 0 0 0; padding: 0 5px;}

Or use class attributes.
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-01-2008, 04:36 PM   #5 (permalink)
Contributing Member
 
Join Date: 06-11-07
Posts: 153
iTrader: 0 / 0%
Latest Blog:
None

Capo64 is on the right pathCapo64 is on the right pathCapo64 is on the right path
why not just have a class for your legend and save some clutter?

<fieldset><legend class="head">This is the text</legend></fieldset>

legend.head{ font-size: 110%; font-weight: bold; color:#AC6A0B; margin: 0 0 0 0; padding: 0 5px;}
Capo64 is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-13-2008, 05:12 AM   #6 (permalink)
Contributing Member
 
ag3nt42's Avatar
 
Join Date: 04-22-08
Posts: 99
iTrader: 0 / 0%
Latest Blog:
None

ag3nt42 is liked by many
Quote:
Originally Posted by Capo64 View Post
why not just have a class for your legend and save some clutter?

<fieldset><legend class="head">This is the text</legend></fieldset>

legend.head{ font-size: 110%; font-weight: bold; color:#AC6A0B; margin: 0 0 0 0; padding: 0 5px;}
and instead of using "margin:0 0 0 0" use "margin:auto;" or "margin:0"

no need to have all the extra 0's in there.. the browser will automatically make all 4 sides 0. "margin" is the command for all 4 sides.. it only targets
one side if you use margin-left ect...
ag3nt42 is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image inside Div Jordonias Web Design Lobby 5 08-10-2006 11:44 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:03 PM.
© Copyright 2008 V7 Inc