I'm grapping with this, and wondering if someone who knows more about HTML and CSS can help me.
My best attempt looks like this:
The -8px modifier for the left and right margins is to counteract the 8px margin of the <body> element. This works nicely, except when the page content is larger than the browser window in that case, the horizontal rule goes to the window's edge, but not the page's edge.
Attached is an illustration of the problem.
Here's the full code:
Can anyone help me out?
I originally posted this in the Programming forum, before realising this would be a more suitable forum. I apologise to those who end up seeing this twice...
My best attempt looks like this:
Code:
<div style="margin-left:-8px;margin-right:-8px"><hr style="color:Black;background-color:Black;border:0;width:100%;height:1px;" /></div>
The -8px modifier for the left and right margins is to counteract the 8px margin of the <body> element. This works nicely, except when the page content is larger than the browser window in that case, the horizontal rule goes to the window's edge, but not the page's edge.
Attached is an illustration of the problem.
Here's the full code:
Code:
<html><body style="margin:8px;">This is some text.<div style="margin-left:-8px;margin-right:-8px"><hr style="color:Black;background-color:Black;border:0;width:100%;height:1px;" /></div>More text.<br /><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9YGARc5KB0XV+IAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAF1JREFUGNO9zL0NglAAxPEfdLTs4BZM4DIO4C7OwQg2JoQ9LE1exdlYvBBeZ7jqch9//q1uH4TLzw4d6+ErXMMcXuHWxId3KOETnnXXV6MJpcq2MLaI97CER3N0vr4MkhoXe0rZigAAAABJRU5ErkJggg==" style="width:1000px;height:1000px;"></body></html>
Can anyone help me out?
I originally posted this in the Programming forum, before realising this would be a more suitable forum. I apologise to those who end up seeing this twice...