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
Insert the content of a div tag as the page header
Old 05-04-2009, 05:09 AM Insert the content of a div tag as the page header
Junior Talker

Posts: 1
Name: Prageeth Jayasinghe
Trades: 0
Dear all;
I am trying to insert the content of a div tag as the header(top content) of the html page.
For an example;
<style type="text/css">
@page {
@top-Center{
content: <CONTENT OF THE DIV TAG>;
}
}
</style>

My div is as follows.
<div id="myDiv">
This is the header.
</div>
Is there a way for me to do this. Thank you.
jpower is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-04-2009, 10:46 AM Re: Insert the content of a div tag as the page header
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
So, you just put your content into the "header" div, why is that a problem ?
Your <style> example is invalid and cannot be done that way.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 05-04-2009 at 03:29 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-04-2009, 01:00 PM Re: Insert the content of a div tag as the page header
Average Talker

Posts: 28
Name: TJ Phippen
Trades: 0
Although your markup is invalid, I think I get what you're trying to do. I'd personally use PHP to echo the content of the div & do the same with the style content..

Now that I think about it, why not just define the style content & it'll take care of the div.. ?
__________________
| | TJ PHIPPEN | |
Please login or register to view this content. Registration is FREE

| Definition Redefining Speed, Quality & Satisfaction!
| Call Me: (435) 225-6121 | Email Me:
Please login or register to view this content. Registration is FREE

Last edited by siforek; 05-04-2009 at 01:03 PM..
siforek is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Insert the content of a div tag as the page header
 

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.16335 seconds with 12 queries