Hi,
I know "position: absolute" will pop an element from the "flow of HTML/CSS" and it stops interacting with its neighbors. What other ways are there to achieve this?
I need to strip out all font tags from a document. When attempting to do so with the following Ruby code, other elements and text within the font tags are lost. I've also attempted to iterate through all children elements and make them siblings of the font tag before unlinking the font tag--which also results in lost HTML. What is a good method for removing tags which can contain other elements and/or text?
doc.css('font').each do |element|
element.unlink
end
I'm using CSS 3 features like "rounded corner" or "shadow box".
IMHO These are fantastic features for people like me with no graphics knowledge. But, i've noticed, IE 7-8 not support CSS 3.
So i'm asking you: is there a way to "enable" some features maybe with some javascript functions to include in my html file ?
Thank you!
If' I use XHTML 1.0 Strict currently then should i leave to use those XHTML Elements/Tags/Attributes which will not in HTML 5 spec.? if I'm using
<acronym> and <big>
Using jQuery what provides for faster object construction:
With the HTML code
$('<dd class="foo baz" id="bar"> foobar </dd>')
Or with the pure object/method variant
$('</dd>').addClass('foo').addClass('baz').id('bar').text('foobar')
I'm not sure how the internals work, feel free to supply a high level summary.
I'm looking to see if I can design a HtmlHelper extension method that will generate the Html for different types of widgets I want to produce.
Each different type of widget implements functionality to get and prepare any data it needs to render.
Can anyone suggest any patterns I could refer to for approaches to take? I know there are probably frameworks available that will do this for me, but I thought I'd give it a try anyway. Any points of advice?
Thanks
I have an input textbox on an asp.net page and when a user inputs any tags like break tags or bold an error occurs. I currently am using the following to encode the input:
Server.HtmlEncode(mytextbox.Text)
However this only encodes characters when they aren't phrased as an html tag, like if the input is "<<<" is there a way for me to allow the user to put the tags in without it leading to a runtime error?
Thanks.
I want to change the page, I'm not sure if it is possible with JavaScript, so I tried with HTML, and it failed.
if (text=="home") {'<meta http-equiv="REFRESH" content="1;url=index.php">'; return;}
Any ideas on how to do this?
I'm using IntellIJ with Apache Wicket and IntelliJ is showing me that tags like <wicket:extend> and <wicket:container> and adding wicket:id to other html tags is not valid.
What steps do I need to take to make IntelliJ recognize the wicket tags?
I'm using IntelliJ Ultimate 9 with the wicketforge plugin.
I have a HTML string and want to replace all links to just a text.
E.g. having
Some text <a href="http://google.com/">Google</a>.
need to get
Some text Google.
What regex should I use?
I used to have a great firefox addon for this and i can't remember the name of it..
when you looked at the source it would sit at the bottom (like firebug) and check your html markup and suggest things like "doctype given is html4.0, looks like xhtml strict" etc
i though it was the web developer toolbar but that doesnt seem to add anything to the bottom of ym source pane?
Say I had a file like... http://my.website.com/myfile.raw
and this file was just raw bytes, representing an intensity image. Is it possible to grab this data and read the bytes in JavaScript? And then using it with HTML 5 canvas (e.g., putImageData) to draw an image?
Or is there some other way to do this in the browser without Java or Flash?
in views.py:
@user_passes_test(lambda u: u.is_superuser)
def h_view(request):
return render_to_response('mytest/news.html',context_instance=RequestContext(request))
but i want to show this page when admin login,and my now page is :
<li id="tab_mytest"><a href="{% url mytest_list %}" class="{% block mytest_css_name %}{% endblock %}">{% trans "mytest" %}</a></li>
how to change it,
has this method :user.is_superuser ??
thanks
I would like to retrieve a page's full HTML source using Flex, but I am not having much luck so far. I keep running into problems when I use URLLoader.
Can someone provide a complete, working example?
I am following w3c schools to learn XSLT. in An example. In-line styling is performed here.
How can I link an external (CSS) style sheet to style HTML compliant tags?
Adobe Air's (read: Flex) mx:HTML component uses WebKit to render webpages. As such, does anyone know of a way to tweak WebKit's settings via the Air application (or a Flex API)? For example, I'd like to set WebKit's "enable-private-browsing" setting from "false" to "true".
I'm using CSS 3 features like "rounded corner" or "shadow box".
IMHO These are fantastic features for people like me with no graphics knowledge. But, i've noticed, IE 7-8 not support CSS 3.
So i'm asking you: is there a way to "enable" some features maybe with some javascript functions to include in my html file ?
Thank you!
I am scrapping data from web site using my java application and want to display the result after parsing code of html page in a Text Area made in Swing.
Text like: hello <b>every</b>one should be displayed as: 'hello everyone' in text area.
Thanks!!
hi,
I want to display a children element of my html page all over the browser window.. in other words I would like to enlarge it and keep it the same size the browser window also when it is resized after loading.
I was wondering if I have to move this object outside the parent elements or I can set these properties with css.
At the moment if I set width:100% and height:100%, it fits the parent (of course) and not the window.
thanks
When I enable 32 bit applications on the application pool of a website running on Server 2008 web IIS7, a handler mapping for *.html - asp.dll no longer works. Can anyone explain why?
Does anyone know of a good online resource which gives a clear reference on the SQL syntax supported by HTML 5 client-side databases? I've looked about and cannot seem to locate one.
Thanks