Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Embed HTML within CSS? I know it sounds backwards, but...
Old 03-09-2009, 03:25 AM Embed HTML within CSS? I know it sounds backwards, but...
Novice Talker

Posts: 7
Trades: 0
Hey, I was wondering if it would be possible to somehow embed HTML within a CSS style?

Why, you ask?

For example, say you want to make a div with a style having rounded corners. Well, rounded corners is hell with CSS and requires all sorts of Javascript patchwork. But with tables it's easy. So what if we could make a style that gives a table with rounded corners?

That's my train of thought. I would like to hear all y'all's opinions.
__________________
fueled by caffeine, entheogens, & breaKcore
Abusername is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-09-2009, 03:32 AM Re: Embed HTML within CSS? I know it sounds backwards, but...
Novice Talker

Posts: 7
Trades: 0
I should clarify - scalable liquid layout with rounded corners in CSS is hell.
__________________
fueled by caffeine, entheogens, & breaKcore
Abusername is offline
Reply With Quote
View Public Profile
 
Old 03-09-2009, 05:42 AM Re: Embed HTML within CSS? I know it sounds backwards, but...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Hey, I was wondering if it would be possible to somehow embed HTML within a CSS style?
No. ...
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-09-2009, 11:44 AM Re: Embed HTML within CSS? I know it sounds backwards, but...
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
Originally Posted by Abusername View Post
For example, say you want to make a div with a style having rounded corners. Well, rounded corners is hell with CSS and requires all sorts of Javascript patchwork.
How so? If you use three styled elements, you can get a better, simpler product than tables can...

Code:
.topcorners {
width: 400px;
height: 28px;
}
#topleft {background: url("topleft.jpg"); width: 28px; height: 28px; float: left;}
#topright {background: url("topright.jpg"); width: 28px; height: 28px; float: right;}
.main {
width: 400px;
}
.bottomcorners {
width: 400px;
height: 28px;
}
#bottomleft {background: url("bottomleft.jpg"); width: 28px; height: 28px; float: left;}
#bottomright {background: url("bottomright.jpg"); width: 28px; height: 28px; float: right;}
HTML Code:
<div class="topcorners">
<div id="topleft"></div><div id="topright"></div>
</div>
<div class="main">
content
</div>
<div class="bottomcorners">
<div id="bottomleft"></div><div id="bottomright"></div>
</div>
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Embed HTML within CSS? I know it sounds backwards, but...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.74772 seconds with 12 queries